[wp-trac] [WordPress Trac] #32409: paginate_links() shows 404 on custom post type archive
WordPress Trac
noreply at wordpress.org
Sun May 17 00:00:08 UTC 2015
#32409: paginate_links() shows 404 on custom post type archive
--------------------------+----------------------
Reporter: Kuzmanov | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Query | Version: trunk
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by boonebgorges):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Thanks for the details, Kuzmanov. Based on this, I'd say that the problem
is in fact unrelated to `paginate_links()`, and is caused by overriding
the `$wp_query` global. If you need to modify params like
'posts_per_page', I'd recommend using the `'pre_get_posts'` action, as
suggested by SergeyBiryukov.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32409#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list