Tuesday, March 8, 2011

query_posts() Pagination problem

Find this line in your page.

<?php if (have_posts()) : ?>

And place this code above this code.

<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=1&paged=$paged"); ?>

That's done...

No comments:

Post a Comment