CPT not visible in Nav Menu
-
Hi,
I have an issue on a new WP install which uses a few CPT’s created by the plugin. The setup for all the CPT’s is that they should also be shown in the Nav Menu. However, they are not.
When exporting the setting it seems to be all correct:
function cptui_register_my_cpts_cases() { /** * Post Type: Cases. */ $labels = array( "name" => __( "Cases", "" ), "singular_name" => __( "Case", "" ), ); $args = array( "label" => __( "Cases", "" ), "labels" => $labels, "description" => "", "public" => true, "publicly_queryable" => true, "show_ui" => true, "show_in_rest" => false, "rest_base" => "", "has_archive" => true, "show_in_menu" => true, "exclude_from_search" => false, "capability_type" => "post", "map_meta_cap" => true, "hierarchical" => false, "rewrite" => array( "slug" => "cases", "with_front" => true ), "query_var" => true, "supports" => array( "title", "thumbnail" ), ); register_post_type( "cases", $args ); } add_action( 'init', 'cptui_register_my_cpts_cases' );
I’ve already switched back to the default WP theme as I’m using a custom one. Also disabling all other plugins didn’t solve the issue.
It’s not a big deal adding the menu items manually but this seems to me like some kind of bug…?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘CPT not visible in Nav Menu’ is closed to new replies.