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.
I had same problem, I've searched every where, coded tons of lines and wasted a considerated number of hours and this few lines solves it!!
Thank you
Daniel
Hey guyz Im facing the same problem past 6 months and didn't get a fix for this !!!
Here is the script that Im using....
http://flopsite.com/Wordpress%202.9.2.rar
Demo : http://www.flopsite.com
( Click on the ← Previous Entries at the bottom of the page and it will display the main page only :-( )
I dont know where the exact problem is and in wich file so please help me out people :-(
This topic has been closed to new replies.