[wp-trac] [WordPress Trac] #40436: Custom taxonomy terms order lost under wp-admin/post.php edit action for a custom post type
WordPress Trac
noreply at wordpress.org
Fri May 11 15:29:06 UTC 2018
#40436: Custom taxonomy terms order lost under wp-admin/post.php edit action for a
custom post type
--------------------------------------+------------------------------
Reporter: solo14000 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: administration
--------------------------------------+------------------------------
Comment (by seanleavey):
I just discovered that adding an `args` index to the `$args` array in the
`register_taxonomy` call itself containing an array with the default order
set to `term_order` gives me what I want, as per the procedure presented
in #40496. This means I don't need to filter `get_the_terms` to change the
order, but the use of the `args` parameter is undocumented.
In any case, it would be great if both the `sort` and `args` parameters in
`register_taxonomy` could be documented to show they are officially
supported.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40436#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list