[wp-trac] [WordPress Trac] #18106: get_terms of posts in a specific post_type

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 14 05:25:49 UTC 2011


#18106: get_terms of posts in a specific post_type
-----------------------------+-----------------------------
 Reporter:  braydonf         |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Taxonomy         |    Version:
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 I have searched most everywhere to find how to use get_terms for a
 specific post type, and have only found this article:
 http://wordpress.stackexchange.com/questions/14331/get-terms-by-taxonomy-
 and-post-type However this is doing a query for posts and getting the
 terms for those posts rather than doing a straight SQL statement, so it's
 not as efficient or ideal.

 Adding an additional argument for additional where statements or a
 argument to specific a post_type, are two solutions I can imagine.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18106>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list