Thumbnail
-
I cant seem to have a Thumbnail besides my posts on the Index.
I have the child theme for Twenty Ten, andMy functions.php is
<?php
add_action( ‘init’, ‘mytheme_setup’ );
function mytheme_setup() {
set_post_thumbnail_size( 100, 100, true );
add_image_size( ‘single-post-thumbnail’, 250, 250 );
}?>
My single.php is
<div class=”entry-content”>
<?php the_post_thumbnail( ‘single-post-thumbnail’ ); ?>
<?php the_content(); ?>
<?php wp_link_pages( array( ‘before’ => ‘<div class=”page-link”>’ . __( ‘Pages:’, ‘twentyten’ ), ‘after’ => ‘</div>’ ) ); ?>
</div><!– .entry-content –>And my Loop.php is
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
<div class=”entry-summary”>
” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyten’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”><?php if (has_post_thumbnail()) { the_post_thumbnail(); }?><?php the_excerpt(); ?>
</div><!– .entry-summary –>
<?php else : ?>
<div class=”entry-content”>
” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyten’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”><?php if (has_post_thumbnail()) { the_post_thumbnail(); }?><?php the_content( __( ‘Continue reading <span class=”meta-nav”>→</span>’, ‘twentyten’ ) ); ?>
<?php wp_link_pages( array( ‘before’ => ‘<div class=”page-link”>’ . __( ‘Pages:’, ‘twentyten’ ), ‘after’ => ‘</div>’ ) ); ?>
</div><!– .entry-content –>
<?php endif; ?>But I can’t see any thumbnail besides the post excerpt on the index pages.
Any idea why? and how to rectify?
The topic ‘Thumbnail’ is closed to new replies.