[wp-trac] [WordPress Trac] #32409: paginate_links() shows 404 on custom post type archive

WordPress Trac noreply at wordpress.org
Fri May 15 12:42:05 UTC 2015


#32409: paginate_links() shows 404 on custom post type archive
--------------------------+------------------------------
 Reporter:  Kuzmanov      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------
Changes (by SergeyBiryukov):

 * component:  General => Query


Comment:

 If you're overriding the main query, I'd suggest using
 [https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts#Changing_the_number_of_posts_per_page.2C_by_post_type
 pre_get_posts action] instead of a custom `WP_Query` instance.

 See also some related tickets in [comment:13:ticket:20758].

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32409#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list