Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( have_posts() ) : ?>
- <?php /* Start the Loop */ ?>
- <?php $cnt=0; while ( have_posts() ) : the_post(); ?>
- <?php if($cnt%3==0 && $cnt!=0){
- echo "</div><div class='row'>";
- }?>
- <?php
- /* Include the Post-Format-specific template for the content.
- * If you want to overload this in a child theme then include a file
- * called content-___.php (where ___ is the Post Format name) and that will be used instead.
- */
- get_template_part( 'content', get_post_format() );
- ?>
- <?php $cnt++; endwhile; ?>
- <div class="clearfix"></div>
- <?php else : ?>
- <?php get_template_part( 'no-results', 'index' ); ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement