Problem with add_rewrite_rule and pagination (paged and page query_vars)

I believe you could just call the paged add_rewrite_url last so that it is checked first. Otherwise the paged version will never get any match, since the non-paged one will always match first. Should also work if you remove ‘top’ from your arguments.

Also, check out this page for a nice way of debugging those 404 when working with custom rewrite:
http://www.dev4press.com/2012/tutorials/wordpress/practical/debug-wordpress-rewrite-rules-matching/

Leave a Comment