Skip to content

Add ability to reorder tags / non-hierarchical taxonomy terms in editor meta box #6704

Open

Description

Is your feature request related to a problem? Please describe.
Currently it's not possible for the user to reorder tags or non-hierarchical taxonomy terms in the Gutenberg editor. While this is not usually important for tags, other taxonomies may have a desired order other than alphabetical (for example, I'm making a coauthor plugin where author order is important). Since WordPress saves tags and non-hierarchical terms in the order it receives them, control should be given to the user to allow this.

This work probably goes hand-in-hand with #6688.

Describe the solution you'd like
The ability to reorder tags using some sort of drag-and-drop interface. JQuery has such a module to easily facilitate this, and it seems React does too.

If the developers don't want this feature to be enabled by default, consider adding it as an optional flag in register_taxonomy.

Describe alternatives you've considered
The only way to reorder terms is currently to delete the terms and add them back in the order you want. The terms are then submitted in this order, and WordPress saves them in this order, but then due to the issue described in #6688 the terms are retrieved in alphabetical order when the post is edited again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    [Feature] Document SettingsDocument settings experienceDocument settings experience[Feature] ExtensibilityThe ability to extend blocks or the editing experienceThe ability to extend blocks or the editing experience[Priority] LowUsed to indicate that the issue at hand isn't a top priority to address and can be handled laterUsed to indicate that the issue at hand isn't a top priority to address and can be handled later[Type] EnhancementA suggestion for improvement.A suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions