[wp-trac] [WordPress Trac] #20267: Query_Posts not matching Custom Post Type, Taxonomy and Post-id values
WordPress Trac
wp-trac at lists.automattic.com
Wed Mar 21 00:47:34 UTC 2012
#20267: Query_Posts not matching Custom Post Type, Taxonomy and Post-id values
--------------------------+----------------------
Reporter: arena | Owner: arena
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Query | Version: 3.4
Severity: normal | Resolution: invalid
Keywords: dev-feedback |
--------------------------+----------------------
Changes (by dd32):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Since you've specified a exact post to retrieve (via the p param (name,
page_id, or pagename should also result in the same thing)), my
understanding is that it doesn't use the query vars.
You'll however want to look into using the newer Tax Query:
http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20267#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list