Showing the post thumbnail on Posts Page
-
I selected a Posts Page from the Reading Settings on which to display my posts. Now in my index template I’m having trouble showing the page thumbnail above all the posts.
My code is
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php the_post_thumbnail( 'page_thumbnail' ); ?> <?php endwhile; ?> <?php endif; ?> and below is a query posts loop that lists my posts from a certain category..
Above the list of recent posts, instead of showing just the one page thumbnail it shows a list of them from random posts. I’m not sure how to call the page thumbnail without generating a list. Not sure what’s missing..Is there some kind of solution for this?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Showing the post thumbnail on Posts Page’ is closed to new replies.