M
M
Millerish2016-04-11 16:36:12
CMS
Millerish, 2016-04-11 16:36:12

Wordpress how to display post image under post info?

Good afternoon!
Can you tell me how to correctly display the image of the post under the information about the post?
Now the old code is:
...
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', get_post_format() );
?>
<?php
echo get_the_post_thumbnail();
?>
<?php
the_post_navigation();
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // End of the loop.
?>
...
The picture is displayed at the very bottom, how to put it between Posted on and the text?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2016-04-11
@Millerish

you need to paste this code in another file
in the template-parts folder there are files
you need those that start with 'content'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question