Posted By

visualadvance on 02/23/11


Tagged

count loop


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

hkamci


Wordpress: Advance Loop by 1 Post


 / Published in: PHP
 

Handy if you want a loop to not start on the first post. The $count can be changed to any number "fast forwarding" the loop.

  1. query_posts(array(
  2. 'order'=> 'DESC',
  3. 'cat' => '3',
  4. 'post__not_in' => array($exludeposte),
  5. 'orderby'=>'date',
  6. 'showposts' => 3
  7. ));
  8. $count = 1;

Report this snippet  

You need to login to post a comment.