Unluckily does not exist a clean way to do this, because register taxonomy doesn’t provide a menu_order
argument.
But you can act on global $submenu
variable and reorder it, something like
add_action( 'admin_menu', function() {
global $submenu;
$found = FALSE;
$before = $after = array();
$tax_slug = 'my_custom_tax'; // change your taxonomy name here
foreach ( $submenu['edit.php'] as $item ) {
if ( ! $found || $item[2] === 'edit-tags.php?taxonomy=' . $tax_slug ) {
$before[] = $item;
} else {
$after[] = $item;
}
if( $item[2] === 'edit-tags.php?taxonomy=category' ) $found = TRUE;
}
$submenu['edit.php'] = array_values( array_merge( $before, $after ) );
}, 0 );
Related Posts:
- WP REST API no longer supports filter param, so how do I get posts in a custom taxonomy?
- Include and Exclude Taxonomies From Archives & Feeds Using ‘pre_get_posts’
- Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
- Get value in custom field with taxonomy [closed]
- Get second level terms of custom taxonomy
- Taxonomy menu with post count and multiple parents
- Modify Term Update Redirection
- How to get first post in a category of a custom taxonomy
- How to get the singular name of a custom taxonomy?
- How to hide custom taxonomy archives same way as hiding custom post types?
- Archive template for taxonomy terms
- pre_get_posts OR relation between taxonomy and author
- Custom Fields and performance
- Non-hierarchical custom taxonomy using checkboxes on edit-screen -> saving issue
- Dynamic page slug for Custom Taxonomies?
- show term description instead of list terms of custom taxonomy
- get_the_term_list without specific category
- Add Category Name to REST API
- Display the Terms from a Custom Taxonomy Assigned to a Post(inside the loop) in Hierarchial Order
- Edit post meta with checkboxes on front end
- Set posts_per_page in WP_Query for custom taxonomy
- drop-down list taxonomy problem
- Redirect to Post List by Taxonomy on User Selection of Taxonomy Dropdown?
- How do I get WordPress URL rewrites into Sitemap?
- How to display custom taxonomy in multiple columns?
- Custom taxonomy sort by term meta in admin columns
- Removing the “Popular Terms” area from the Taxonomy Edit Screen in the Admin Area
- Sorting taxonomy columns by meta value numeric
- Programatically added attribute, set to ‘show on product page’ automatically. Woocommerce [closed]
- WordPress Custom Taxonomy – Volume / Issue – Unique Slug Issue
- Custom taxonomy query not working with switch_to_blog
- How can I check if a taxonomy has more than one item?
- How to show the entries in a custom taxonomy by author?
- how does get_term_by know which term to return when the same term appears twice in a hierarchical taxonomy?
- Changing stylesheet depending on custom taxonomy terms
- Taxonomy with_front causes all
- Why is my taxonomy template not shown?
- cannot get multiple loops using tax_query
- How Can I Change a Taxonomy URL Based On The Originating URL?
- How To Assign “Taxonomy per Taxonomy”?
- How to add a Rewrite Rule / Category Structure
- Hide posts having children terms when display posts by category in edit.php
- How to have two different versions of a tag/category/taxonomy archive page?
- Rewrite Rule Working for all but one of the taxonomies created
- Get custom taxonomy for visual composer shortcode but not working?
- woocommerce custom product category template
- List of users inside custom taxonomy
- List related terms + taxonomies
- Multi-select field for Taxonomy can’t save the value
- How to Display a menu only if it has Posts in Custom Menu?
- how does the wordpress rest API work
- Taxonomy terms can still be added when only assign_terms capability has been granted
- Use an HTML Element To Filter Taxonomies In WP Search
- Why is flush_rewrite_rules mandatory after registering custom taxonomies?
- tax_query not working
- wp_query not resetting, last post hanging
- Set term on an attachment using wp_set_object_terms and want to display the full term text but it’s showing a slug instead
- custom taxonomy not showing in Gutenberg
- Can I add other Custom Taxonomy to my syntax (functions.php)
- Why does wp_remove_object_terms not work?
- how to get term id from current post type instead of name
- Display children category images
- Dropdown taxonomy lists in admin menu
- Is there a way to change select-list for new custom taxonomy?
- How to define %category% for custom taxonomies?
- get_terms does not return any results for my custom taxonomy?
- How to Create Multi selection search Form using Default WordPress Category Terms, and Custom post Types Taxonomies Terms?
- How do I get the correct URL?
- How to replace custom post type with custom taxonmy in permalinks
- Cloning product not copying custom taxonomies
- deleted_$taxonomy not getting fired
- Query all images with certain tag in media library using visual portfolio plugin
- See double taxonomy inputs in WP editor
- Problem with wp_list_category with custom taxomy
- Restructuring permalink with more than one taxonomies
- Restrict viewing of posts by category, user role
- WP Query : strange behaviour with multiple no-hierarchical tax
- Dynamic drop down of child terms and then drop down posts
- Custom order of taxonomy using wp_get_object_terms and woocommerce_term_meta
- ajax drop down change second drop down data
- Redirect or Prevent Viewing of Custom Taxonomy’s Archives?
- List terms and order by second word
- If term and page have the same slug, how can I view the term archive?
- Does a codex exist for creating meta boxes in taxonomy
- Display taxonomy term slugs
- Run next query based on first query’s term
- Get the original menu item name string instead of the label
- How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
- Tax query array terms display out of order
- How to permanently delete a taxonomy
- How to query posts that are not related to any term of a taxonomy?
- Function code problem
- Permalinks not working on MU network with domain mapping
- add_action with variable as a part of the $tag string
- Get custom taxonomy term url on archive page
- I’ve got a function that auto creates taxonomy terms – Can it auto delete them as well?
- How to display Custom taxonomy on custom post listing page [duplicate]
- add_rewrite_rule pagination 404 error on page 4 and above
- Taxonomies starting with a hyphen (minus) to assign B.C. dates to a post
- Rewrite URL for a specific taxonomy [duplicate]