lesterchan / wp-pagenavi

Adds a more advanced paging navigation interface to your WordPress blog.
https://wordpress.org/plugins/wp-pagenavi/
134 stars 49 forks source link

Not working if 'posts_per_page' is set in custom WP_Query #54

Closed JulesAlx closed 6 years ago

JulesAlx commented 6 years ago

The plugin produces 404 errors when going through page 2, 3, etc. Is this parameter not handled or does the plugin only rely on default WordPress setting in Reading > Posts per page ?

lesterchan commented 6 years ago

You need to pass the query the query to the plugin. See http://scribu.net/wordpress/wp-pagenavi/wpn-2-74.html