[closed] Feature Image thumbnails (1 post)

  1. Aron 15
    Posted 2 years ago #

    Hi everyone,

    I'm trying to use this code to display the featured images of each post within a category...

    <?php while (have_posts()) : the_post(); ?>    
    		<?php if (has_post_thumbnail( $post->ID ) ): ?>
        		<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?>
    		<li><img onload="fadeIn(this)" class="image" src="<?php echo $image[0]; ?>"></li>
    		<?php endif; ?>
                   <?php endwhile; ?>

    Is it possible for this code to show the 'large' version of the image - I have tried everything but can't seem to be able to get it to work..

    Maybe I am missing something?


    [closed - continue with http://wordpress.org/support/topic/featured-image-thumbnails?replies=4 ]

Topic Closed

This topic has been closed to new replies.

About this Topic