[wp-trac] [WordPress Trac] #14620: get_posts(): possible to allow "genre=1, 2, 3 " as in "cat=1, 2, 3"?
WordPress Trac
wp-trac at lists.automattic.com
Mon Aug 16 02:34:47 UTC 2010
#14620: get_posts(): possible to allow "genre=1,2,3 " as in "cat=1,2,3"?
-----------------------------+----------------------------------------------
Reporter: bobsoap | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.0.1
Severity: normal | Keywords: get_posts, custom taxonomies, query
-----------------------------+----------------------------------------------
I've been trying to use get_posts with custom taxonomies. I now gave up
and am doing manual sql queries instead, so this is just a suggestion:
- allow multiple, comma-separated term IDs in the get_posts() attributes,
just like for the attribute "cat".
This would make something like this possible:
{{{
$posts_in_Action_Western_Noir = get_posts('genre=2,5,12');
}}}
(where 2, 5, and 12 are the term IDs of the Action, Western and Noir
terms)
Thanks.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14620>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list