Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question