[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
Wed Feb 8 09:58:34 UTC 2012


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

Comment (by kawauso):

 > it lists posts from "news"(!!!) category (and pagination doesnt work)

 The query you're passing to query_posts() doesn't actually specify a
 category at all, so it's loading everything.

 > What do you mean by hooking initial query, do you mean hooking
 pre_get_posts? I have tried already. I was able to show normal posts from
 certain category and custom posts from certain category. I was not able to
 show normal posts from certain category and custom posts from ANY category
 and not assigned to any category:-( And the whole thing didnt work in
 parent category:-(

 That's a support issue. Please take it to the forums or IRC channel.

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


More information about the wp-trac mailing list