[wp-trac] [WordPress Trac] #30941: Get taxonomy terms by post ID and order/orderby

WordPress Trac noreply at wordpress.org
Wed Jan 7 17:29:13 UTC 2015


#30941: Get taxonomy terms by post ID and order/orderby
-----------------------------+------------------------------
 Reporter:  miyarakira       |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Taxonomy         |     Version:  4.1
 Severity:  minor            |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by miyarakira):

 Thank you for the suggestion, that solved my issue.

 * Get taxonomy terms without post ID: `get_terms`
 * Get taxonomy terms with post ID '''and''' order/orderby:
 `wp_get_object_terms`
 * Get taxonomy terms with post ID '''without''' order/orderby:
 `get_the_terms` to take advantage of the cache

 Well, it looks like I should have posted this in the support forum instead
 of raising a ticket - at least I learned something new. During the process
 I set up a development version of WordPress via SVN, so I'm able to submit
 patches to core now - cool! :)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30941#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list