<header class="entry-header">
<span class="category-title">
<?php foreach( get_the_category() as $category ) {
$category_name = $category->cat_name;
}
echo ' <a href="' . get_category_link( $category->term_id ) . '">' . $category_name . '</a> ';
?>
</span>
<?php if ( is_single() ) : ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php else : ?>
<h1 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a>
</h1>
<?php endif; // is_single() ?>
</header><!-- .entry-header -->
<?php if( is_home() && $wp_query->current_post != 0 || is_home() && is_paged() ) the_post_thumbnail(); ?>
<?php if ( is_search() || is_archive() || is_category() || is_tag() || is_home() ) : // display Excerpts ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
<a href="<?php echo get_permalink(); ?>"> Read More...</a>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
<footer class="entry-meta">
<?php
$date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>',
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
echo $date ;?>
<?php if ( comments_open() ) : ?>
<?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
<?php endif; // comments_open() ?>
</footer>
this is the content.php code
i modified the position of some stuff, and first of all, thanks to you alchymyth, i was able to place a big image for the first post of the main page. (the query string)
the home page has a big image as featured image only for the first post, for the others has simply the featured image smaller.
from the menu you can access to different links which are categories. For example i ve a category called illustrations. From the menu i click illustrations and i will find a page with all the illustration category posts. The problem is that the list of posts doesn’t have the featured image. I don’t even want this to be like the main page with the big image for the first post; i only need a simple post list with featured images for each post.