Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. <?php /* Template for displaying posts page and category archives */
  2. if (have_posts()) :
  3.     $counter = 1;
  4.     $max_posts = $wp_query->post_count;
  5.     while (have_posts()) : the_post();
  6.         if ($counter == 1) :
  7.             get_template_part('content', 'lead'); ?>
  8.             <hr class="mh-separator"><?php
  9.         else :
  10.             get_template_part('content');
  11.         endif;
  12.         $counter++;
  13.     endwhile;
  14. else :
  15.     get_template_part('content', 'none');
  16. endif;
  17. mh_newsdesk_lite_pagination(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement