Posted By

Ben on 03/02/10


Tagged

wordpress loop


Versions (?)

Worpress rewind post


 / Published in: PHP
 

  1. <?php rewind_posts(); ?>
  2. <?php while (have_posts()) : the_post(); ?>
  3.  
  4. <!-- the loop -->
  5.  
  6. or
  7.  
  8.  
  9. <?php rewind_posts(); ?>
  10. <?php query_posts('category_name=CATEGORY&showposts=3'); ?>
  11. <?php while (have_posts()) : the_post(); ?>
  12.  
  13. <!-- then the loop -->

Report this snippet  

You need to login to post a comment.