I don't get whats happening here.
I'm on a child-page template, generating a WP_Query for Custom Post Types on the fly, like this:
$notrel = new WP_Query(array( 'post_type' => $type, 'posts_per_page' => $perpage, 'monthnum' => $mes, 'year' => $ano, 'paged' => $paged ));
Loops and $_GET filters for
yearare all working perfectly. But pagination is giving me trouble.
A) If i try the URL
http://example.com/parent-page/child-page/page/4/ i get
paged = 1.
B) On the other hand,
http://example.com/parent-page/child-page/4/ correctly gives
paged = 4 but pagination doesn't work since
next_posts_link automatically shapes URLs like A.
/page/4/ is standard, so why is it not working here? Is it maybe the rewrite parameter on register_post_type?
EDIT: still not solved, se this -> paginate_links() adds empty href to first page and previous link