Wordpress: Reset paging after query_posts

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

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

Copy this code and paste it in your HTML
  1. <?php
  2. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  3. query_posts("paged=$paged");
  4. ?>

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.