Hi,
I am having this weird problem that will quiet surely make me go crazy.
I got 2 Custom Post Types (Agenda and Quotes).
The Agenda (Events) custom types are displayed from a template page "Agenda" with no parent.
The Quotes types are child of "Extras".
I got the same query structure and pagination (WP-Navi) only works for Quotes but not for Agenda (returns a 404 page).
I experimented changing Agenda to a child page and pagination works.
Than changed Quotes to assign no parent page, and get 404 when trying to paginate (quotes/page/2).
Here is the code I use:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; //for WP-PageNavi
$quotesloop = new WP_Query(array(
'post_type' => 'quotes',
'posts_per_page' => 10,
'paged'=>$paged )
);
while ( $quotesloop->have_posts() ) : $quotesloop->the_post();
And than I use this:
if(function_exists('wp_pagenavi')) { wp_pagenavi(array( 'query' => $quotesloop )); }
I am now running WP 3.1 but i got the problem even before upgrading, on 3.0.5
Any suggestion on the weirdness?
Thanks…