Advertisement
alchymyth

loop.php third section twenty ten rework

Jun 6th, 2012
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.08 KB | None | 0 0
  1. <?php /* How to display all other posts. */ ?>
  2.     <?php else : ?>
  3.    
  4.    
  5.         <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  6.         <div class="post-featured-image"><?php the_post_thumbnail(array(300,300)); ?></div>
  7.            
  8.         <div class="post-content">
  9.             <div class="post-category"><?php the_category(' / '); ?></div>
  10.             <h2 class="entry-title"><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>
  11.  
  12.             <div class="post-meta">
  13.             by <span class="post-author"><?php the_author(); ?></span> on <span class="post-date"><?php the_time('F m, Y'); ?></span> &bull; <span class="post-comments-link"><?php comments_popup_link('No Comments','1 Comment','% Comments','',''); ?></span>
  14.             </div><!-- .post-meta -->
  15.  
  16.             <div class="entry-summary">
  17.                 <?php the_excerpt(); ?>
  18.             </div><!-- .entry-summary -->
  19.         </div><!-- .post-content -->
  20.  
  21.         </div><!-- #post-## -->
  22.  
  23.     <?php endif; // This was the if statement that broke the loop into three parts based on categories. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement