I just updated my blog to wp 3.4, and I noticed a bug. Well for me it is a bug and I need a workaround.
I have the following code in my theme’s index.php:
global $wp_query; $paged = intval( get_query_var('paged') ); query_posts(array('post_type' => array('post', 'movie', 'director', 'actor'), 'paged'=>$paged)); get_header();
Based on THIS query a pagination is generated later on the page.
But clicking on the “Older posts” link gives me 404 page.
Guess that’s because wp compares the paged var ONLY with the number of “posts” and I have only 12 posts and 20 items set to display on the page.
The pagination worked fine untin wo 3.4!
- The topic ‘Custom posts query does not work on index with paged var’ is closed to new replies.