I'm having a problem flipping pages when I make a custom query with query_posts() or WP_Query(). The query get the right posts but navigating from page to page always returns the same posts.
Any ideas?
Thanks
Seb
I'm having a problem flipping pages when I make a custom query with query_posts() or WP_Query(). The query get the right posts but navigating from page to page always returns the same posts.
Any ideas?
Thanks
Seb
Since you didn't supply any examples, will throw this out for your consideration:
Example of proper pagination:
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('cat=1&posts_per_page='.get_option('posts_per_page').'&paged=' . $paged);
?>MichaelH, you know everything.
Thanks
Seb
Thanks, but I know just a few things.
You must log in to post.