I am trying to add the featured image of a post into my category archive pages. My theme already supports post-thumbnail (used for the sliding top menu of the sliding doors theme).
from what I gathered I need to modify "the loop" and add
the_post_thumbnail( 'thumbnail' ); somewhere in it.
Questions is where?
I tried different places and no matter what I do, nothing happens.
I tried putting it in the category.php files, same thing.
Once I get it to pop up somewhere I should be able to arrange formatting but right now, no matter what I do it's got no effect on the page.
I was able to make the thumbnail appear. My problem was that I didn't put it in the right place. Now, formatting is clearly not as easy as I thought: if I put it right after the while (have_posts() .....) it'll show, but it puts it above the post title, details, etc.
if I try to put within the existing code, no matter how I do it, the thumbnail won't show.
below is what the unmodified code loops like. I'd like to split this in 2, having the thumbnail on the left and the rest on the right.
<?php if ( in_category( _x('gallery', 'gallery category slug', 'slidingdoor') ) ) : ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'slidingdoor' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="entry-meta"> <?php slidingdoor_posted_on(); ?> </div><!-- .entry-meta --> <div class="entry-content">