[wp-trac] [WordPress Trac] #19985: Query_posts paged not working for subcategories when mixing custom post types

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 7 21:45:27 UTC 2012


#19985: Query_posts paged not working for subcategories when mixing custom post
types
--------------------------+--------------------------------
 Reporter:  novakpeter    |       Owner:  mike@…
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Post Types    |     Version:  3.3.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |
--------------------------+--------------------------------
Changes (by kawauso):

 * status:  new => closed
 * resolution:   => invalid
 * severity:  major => normal
 * milestone:  Awaiting Review =>


Comment:

 The 404 error is being generated because the WordPress initially looks for
 page 3 of the category 'events'.

 The substitution for your new query on post types only happens in the
 category template on existing pages, you need to hook in on a filter that
 alters the initial query.

 There is a pre-existing ticket for a similar issue if anyone cares to find
 it.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19985#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list