I’ve created 3 posts and I assigned them to “body1-items” category

I want to show them dynamically, each one in her div.

so, In the front-page.php I create a loop

https://i.stack.imgur.com/jnwns.png

inside the src of the image I put the_post_thumbnail() function to retrieve the images from the 3 posts but the result is this,

https://i.stack.imgur.com/tsxmS.jpg

they got just the img of the last post and put it on all the 3 posts. plz help me ?

Read more here: the_post_thumbnail shows just one post image


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: