#41820 closed defect (bug) (duplicate)
CPTs are not showing by default on Appearances > Menus page
Reported by: | mehul0810 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.8.1 |
Component: | Menus | Keywords: | |
Focuses: | administration | Cc: |
Description
I have noticed that with fresh WP instance adding CPTs using register_post_type
and setting public
to true
doesn't show that CPT on Appearances > Menus page.
Also, found that the CPT created is listed under metaboxhidden_nav-menus
from function https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/nav-menu.php#L163
However, It should work with public
set to true
or show_in_nav_menus
set to true
. But its not showing when fresh install or Screen Options not set.
Alternative Suggestion: We can overcome this issue by adding a filter here https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/nav-menu.php#L169
Change History (5)
Note: See
TracTickets for help on using
tickets.
I agree that a
public
post type withshow_in_nav_menus
set totrue
should be visible in the Menus screen by default. This would be consistent with the visibility of post types in the Customizer's menu editor.