[wp-trac] [WordPress Trac] #28439: Add 'post_date' as a possible orderby argument to get_terms()

WordPress Trac noreply at wordpress.org
Wed Aug 26 02:25:13 UTC 2015


#28439: Add 'post_date' as a possible orderby argument to get_terms()
----------------------------------------+----------------------
 Reporter:  jchristopher                |       Owner:
     Type:  enhancement                 |      Status:  closed
 Priority:  normal                      |   Milestone:
Component:  Taxonomy                    |     Version:  3.9.1
 Severity:  normal                      |  Resolution:  wontfix
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+----------------------
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 Gonna close this bad boy for the reasons outlined in #18106. You can
 finagle it by doing `get_posts( array( 'tax_query' => ... ) )` to get the
 post order, then looping through results, grabbing term IDs (which will
 have been loaded into the cache, so no real overhead added), and then
 passing to `get_terms( 'my_taxonomy', array( 'orderby' => 'include',
 'include' => $term_ids ) )`.

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


More information about the wp-trac mailing list