Advertisement
alchymyth

loop and thumb

Jun 28th, 2012
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.09 KB | None | 0 0
  1.         <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  2.  
  3. <?php the_post_thumbnail(array(120,90), array("class" => "alignleft post_thumbnail")); ?>
  4.  
  5.             <h2 class="entry-title<?php if( has_post_thumbnail() ) echo ' with-thumb'; ?>"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  6.  
  7.             <div class="entry-meta">
  8.                 <?php twentyten_posted_on(); ?>
  9.             </div><!-- .entry-meta -->
  10.  
  11.     <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
  12.             <div class="entry-summary">
  13.                 <?php the_excerpt(); ?>
  14.             </div><!-- .entry-summary -->
  15.     <?php else : ?>
  16.             <div class="entry-content<?php if( has_post_thumbnail() ) echo ' with-thumb'; ?>">
  17.                 <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
  18.                 <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
  19.             </div><!-- .entry-content -->
  20.     <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement