This is not how you enable adding your taxonomy terms to menus. To do that you just set show_in_nav_menus
to true
when registering the taxonomy. You have it set to false
.
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true, // This
'show_tagcloud' => false,
'rewrite' => $rewrite,
'show_in_rest' => true,
);
register_taxonomy(
'my_region_taxonomy',
array(
'post',
'page', // Not here
),
$args
);
Your taxonomy should not actually be a taxonomy for the nav_menu_item
post type.
Related Posts:
- Can I output a custom taxonomy as a submenu in the site navigation menu?
- Using WordPress to make a “Product Search” type navigation drilldown
- Taxonomy menu with post count and multiple parents
- Taxonomy slug by term ID
- Custom taxonomy position in admin panel
- Custom metabox for menu administration page?
- How to display submenus on page based on referring top-level parent?
- Remove pagination from WooCommerce product categories on admin edit navigation menus
- How to dynamically add custom taxonomy terms as a sub-menu of an existing menu item, using custom walker class
- Recreating the hierarchy of taxonomies for a dropdown form menu?
- Show nav link highlighted
- Add/Remove current_page_parent class
- Date range filter for manage posts list on edit.php
- Get custom category image from menu
- add taxonomy as one of menu items
- has_term if/echo else/echo function
- Controlling Taxonomy Category listings to hide and unhide specifics
- Hide product categories and taxonomy terms in menu if empty
- How to add Post Format Taxonomy Archive page in the menu?
- How to get all taxonomies which can be added in menu?
- Tell the difference between a term and page when they have the same ID
- Customizing Primary Menu to include custom taxonomy description
- How to Display a menu only if it has Posts in Custom Menu?
- When filtering query on custom taxonomy; main menu dissapears
- Corrupted nav-menu?
- Using Custom Taxonomies to organise products – struggling to call a correct list
- Add A CSS Class To A Menu Item When A Custom Taxonomy Term is Present On Single Post
- custom taxonomies menu
- How to add all existing Custom Taxonomy to Admin Menu Creations Interface?
- WordPress Main Menu with dynamic url
- Get the original menu item name string instead of the label
- What is the current page’s Taxonomy?
- Error when adding custom taxonomy to wp nav menu
- More than one Hierarchical Taxonomy and SEO
- Navigation won’t update to show full path to single post
- How to looping taxonomy terms?
- How to filter and/or sort user taxonomy query inside custom user taxonomy archive page?
- Filter language in Polylang for custom taxonomy
- Add terms to a taxonomy archive from within the same taxonomy
- Create multiple taxonomies with custom fields values on the fly when creating new posts
- Navigation item – current date in url
- Echo ACF taxonomy field within a foreach for another taxonomy
- Add Different Class on Different Ul in twenty-twentyone theme
- Show recent posts from a custom taxonomy in wordpress
- update attribute of specific products in woocommerce
- Keeping session instance of random display results over pagination breaks
- when custom taxonomy is empty, the page won’t load
- Problems using get_the_terms in a plugin
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- How to add a shortcode function that returns the taxonomy slug of the actual post within the loop
- Add taxonomy column with meta field (ACF) content
- Warning: Undefined variable $post in C:\xampp\htdocs\… after PHP upgrade
- How to display taxonomy terms in a dropdown on a user edit page
- Get Each Menu Nav Label of Menus in HTML tag
- Updating a custom post type’s custom taxonomy in a custom editor block
- Bizarre Child Menu Issue on WP Site
- Taxonomy hide not working
- Search custom taxonomy via query-string?
- Is it possible to filter a taxonomy archive by other taxonomies that are on posts?
- Clean Taxonomy terms in new post type wordpress
- Hide a menu (navigation bar) on all posts
- How to list custom taxonomy terms alphabetically by last word
- display taxonomy terms with link
- Get children of taxonomies
- Admin only taxonomies?
- new custom filed not showing in taxonomy
- Conditional if is single and part of the custom taxonomy
- How to add a dynamic dropdown derived from custom taxonomy
- Items from media library won’t get added to a custom taxonomy
- Nav Menu: Theme Location not working
- Custom field with terms from another taxonomy programmatically
- Custom taxonomy only gets saved in quick edit
- Taxonomies and subtaxonomies relations
- Tree view wp-admin terms
- Programatically Created Menu not Editable in Dashboard
- Retrieve the child terms by having the parent’s information
- Is it all right to put the whole tag into template_part file?
- Fill New Taxonomies
- Current menu item highlights wrong
- Gutenberg Block Editor – Create block with dynamic content
- How can I rewrite the URL of my custom taxonomy to include the year?
- How to change Custom Permalink for Taxonomy? (remove the slashes from term-slug)
- How to set Nav as a default menu in wordpress
- Infinite Scroll appending Next Product Category Term pages
- add pagination in wordpress page template
- How do I get the correct URL?
- Random order not working correctly when using default loop + $query->set
- Convert post meta to custom taxonomy?
- How to remove empty line space in navigation menu?
- How to change the navigation menu
- Is it possible to get_the_post_thumbnail (Featured Image) inside a sprintf function?
- Custom Taxonomy archive.php template naming not working
- How to create filter’s for custom taxonomy page
- 3 Level Menu Navigation (3rd Level not displaying)
- Get custom taxonomy terms that contain posts that have another taxonomy term
- Remove custom taxonomy slug from URL
- How to exclude woocommerece product category in search results?
- Order get_terms by count using a custom taxonomy hierarchy
- Group posts in a category based on tags in custom taxonomy
- WordPress site hamburger menu toggle not working