I have created a custom
Taxonomy called Documents and I want to show it as one of menu items, I am only able to choose from its posts. How shall I do that?
As below picture I am not able to choose Documents itself as a menu item...
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
Finally I was able to find a way to do exactly what I wanted. Though adding Custom Taxonomy or Custom Post Type can easily be added, while having its Template file, as following:
Appearance> Menus > selecting Links widget > putting link of custom post type or taxonomy
But also this answer help you to have a widget for your custom post type and taxonomy to select from them. The code there is for custom post type, but after working it around, it is now working for me as I had many custom post types and taxonomies.
when registering the taxonomy you should use this parameter
'show_in_nav_menus' => true, in order to use the terms of the taxonomy in the menu generator of WP.
register_taxonomy( 'videoCategories', array('video'), array( 'labels' => array( 'name' => 'Video Categories', 'singluar_name' => 'Video Category' ), 'public' => true, 'show_in_nav_menus' => true, 'show_ui' => true, 'show_tagcloud' => true, 'hierarchical' => true, 'rewrite' => array('slug' => 'videos', 'with_front' => true) ) );