Advertisement
alchymyth

cat 2012

May 10th, 2013
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1.             <?php
  2.             /* Start the Loop */
  3.             while ( have_posts() ) : the_post();
  4.  
  5.                 /* Include the post format-specific template for the content. If you want to
  6.                  * this in a child theme then include a file called called content-___.php
  7.                  * (where ___ is the post format) and that will be used instead.
  8.                  */
  9.             ?>
  10.         <div class="entry-content-<?php echo (( $wp_query->current_post == 0 ) ? 'main' : 'rest' ); if( $wp_query->current_post%2 == 1 ) echo ' left-post'; ?>">
  11.  
  12.                 <?php get_template_part( 'content', get_post_format() ); ?>
  13.         </div>
  14.  
  15.             <?php endwhile;
  16.  
  17.             twentytwelve_content_nav( 'nav-below' );
  18.             ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement