[wp-trac] [WordPress Trac] #30244: Category / Taxonomy Term "Menu Order"

WordPress Trac noreply at wordpress.org
Sun Feb 21 16:37:35 UTC 2016


#30244: Category / Taxonomy Term "Menu Order"
-------------------------+---------------------------------
 Reporter:  Howdy_McGee  |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Taxonomy     |     Version:  4.0
 Severity:  normal       |  Resolution:  maybelater
 Keywords:               |     Focuses:  ui, administration
-------------------------+---------------------------------

Comment (by boonebgorges):

 Correct: After #34996, it's possible to build a simple plugin that adds
 `term_order` term meta via some UI. You can then order `get_terms()`
 results by that key as follows:

 {{{
 $terms = get_terms( $taxonomy, array(
     'meta_key' => 'term_order',
     'orderby' => 'meta_value_num',
 ) );
 }}}

 There's no point in introducing the UI for adding `term_order` into core
 unless core actually takes advantage of that `term_order` somewhere. Where
 would that be? Eg: would the Categories widget have an option to sort by
 term order? Would term order be used as the default sort order for
 `get_terms()` in all contexts? Would template tags like
 `get_the_tag_list()` use `term_order` by default? Proposals are welcome,
 but until we have a solid proposal for the edit UX as well as specific
 core use cases, this remains clearly in plugin territory.

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


More information about the wp-trac mailing list