WordPress.org

Make WordPress Core

Opened 4 months ago

Closed 3 months ago

#26708 closed feature request (wontfix)

menu_order support for get_terms orderby arguments

Reported by: tubiz Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.8
Component: Query Keywords:
Focuses: Cc:

Description

Can menu_order support be added to the orderby arguments when using get_terms.
Presently orderby only supports id, count, name - Default, slug,term_group - Not fully implemented (avoid using) and none

Change History (1)

comment:1 wonderboymusic3 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

get_terms() does not join on wp_term_relationships(), so you would have to filter 'terms_clauses' and write custom SQL logic to reach term_order, which can change based on which post the terms are related to. get_terms() is not intended to relate to specific posts.

Note: See TracTickets for help on using tickets.