Worpress rewind post


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.