Page thumbnails
-
Hi All
Wondering if someone could help. Basically, I’m trying to create a homepage which pulls in the thumbnail graphics from the latest blog post and various pages.
I’ve enabled thumbnail support and have the latest blog thumbnail appearing OK. But I can’t seem to get the page thumbnails to appear. It always shows as the blog thumbnail! Not sure what I’m doing wrong.
Here’s a demo:
https://guiltypleasures.dollypower.com/testHere’s the code I’m using
<?php $temp_query = $wp_query; ?> <?php query_posts('showposts=1'); ?> <?php while (have_posts()) : the_post(); ?> <?php the_post_thumbnail(); ?> <?php endwhile; ?>
<?php echo get_the_post_thumbnail($page->about, 'thumbnail'); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Page thumbnails’ is closed to new replies.