Posted By

S_Park on 07/30/10


paging wordpress query reset

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Wordpress: Reset paging after query_posts

 / Published in: PHP

After querying posts the paging (Next/Previous) may not work. Use this to restore.

  1. <?php
  2. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  3. query_posts("paged=$paged");
  4. ?>

Report this snippet  

You need to login to post a comment.