Advertisement
gabewonders

wembley wordpress theme fix

Nov 25th, 2014
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. <?php if ( have_posts() ) : ?>
  2.  
  3.   <?php /* Start the Loop */ ?>
  4.   <?php $cnt=0; while ( have_posts() ) : the_post(); ?>
  5.     <?php if($cnt%3==0 && $cnt!=0){
  6.       echo "</div><div class='row'>";
  7.     }?>
  8.     <?php
  9.       /* Include the Post-Format-specific template for the content.
  10.        * If you want to overload this in a child theme then include a file
  11.        * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  12.        */
  13.       get_template_part( 'content', get_post_format() );
  14.     ?>
  15.  
  16.   <?php $cnt++; endwhile; ?>
  17.   <div class="clearfix"></div>
  18. <?php else : ?>
  19.  
  20.   <?php get_template_part( 'no-results', 'index' ); ?>
  21.  
  22. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement