voceconnect / multi-post-thumbnails

Adds multiple post thumbnails to a post type. If you've ever wanted more than one Featured Image on a post, this plugin is for you.
143 stars 63 forks source link

issue setting the second thumbnail on template page #107

Closed matthewtlh closed 8 years ago

matthewtlh commented 8 years ago

This is my code to use the default featured image for the post on a template page. I'm having issues switching to MultiPostThumbnails::get_the_post_thumbnail( and getting it to return the second featured image. I'm quite sure that I'm being dim here, but hope you can help.

<?php
                query_posts('showposts=1&cat=7');  
                while (have_posts()) : the_post();
                echo '<div class="frontpageRightImage">';
                echo get_the_post_thumbnail($queried_post->ID, 'full'); 
                echo '</div>';
                echo '<div class="frontpageRightTitle"><a href="'.get_permalink($queried_post->ID ).'">'.get_the_title( $queried_post->ID ).'</a></div>';
                endwhile; 
                ?>
matthewtlh commented 8 years ago

I got it working...mostly.