Guest User

Untitled

a guest
May 26th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <?php
  2. /**
  3. * Loop
  4. *
  5. * This is the default loop file, containing the looping logic for use in all templates
  6. * where a loop is required.
  7. *
  8. * To override this loop in a particular context (in all archives, for example), create a
  9. * duplicate of this file and rename it to `loop-archive.php`. Make any changes to this
  10. * new file and they will be reflected on all your archive screens.
  11. *
  12. * @package WooFramework
  13. * @subpackage Template
  14. */
  15. global $more; $more = 0;
  16.  
  17. woo_loop_before();
  18.  
  19. if (have_posts()) { $count = 0; $total_full_posts = 2;
  20. ?>
  21.  
  22. <div class="fix"></div>
  23.  
  24. <?php
  25. while (have_posts()) { the_post(); $count++;
  26.  
  27. if ( $count <= $total_full_posts ) {
  28.  
  29. woo_get_template_part( 'content', 'post-full' );
  30.  
  31. } else {
  32.  
  33. woo_get_template_part( 'content', get_post_type() );
  34.  
  35. }
  36.  
  37. } // End WHILE Loop
  38. } else {
  39. get_template_part( 'content', 'noposts' );
  40. } // End IF Statement
  41.  
  42. woo_loop_after();
  43.  
  44. woo_pagenav();
  45. ?>
Add Comment
Please, Sign In to add comment