I know there is a plugin that allows for two featured images on a page, but I thought there might be a simple way to hard code my Twenty Ten theme to add to what I’ve already started. I wanted 5 excerpts of my most recent posts along with a 150 x 150 thumbnail to appear on my static home page. I accomplished this by adding the code below to my page.php file and using the “Set Featured Image” option:
<div id="frontpagepostpull"> <?php $temp_query = $wp_query; ?> <?php query_posts('showposts=5'); ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php the_post_thumbnail('front-page-post-thumbnail'); ?> <?php the_excerpt(); ?> </div>
You can see it in action here: http://www.laketahoeweddings.net
I would also like a custom 940 x 198 header for each post, but I already used the “Set Featured Image” for the 150 x 150 thumbnail. Is there any advice on how to do this that isn’t to complicated?
- The topic ‘Multiple Featured Images’ is closed to new replies.