I need a way of adding custom post types to the “Appearance–>Menus” option in WordPress. i have created a custom post type with:
register_post_type('produksjoner',$args);
All examples I find just add the pages to the menu by manually adding the URL into a custom menu item. I want it to be able to add this automatically by choosing it like any other page.
I have been searching for two days now… please help me :-/
To get your custom post types to show up in Appearance -> Menus, you need to do two things:
Check your arguments and make sure that show_in_nav_menus is set to true.
Go to the Appearance -> Menus page and at the very top, click on Screen Options. In the panel that opens, make sure that your custom post types are checked.
That’s all!
I came across this same situation where I needed dynamic menus for my Custom Post Type Archive pages to show up in the Menu editor.
You can try my CPT Archive to Nav plugin and see if that gives you what you want. http://wordpress.org/extend/plugins/cpt-archive-to-nav/ You have to click on the “Screen Options” menu at the top of the page, and then select the requested CPT’s to be displayed on the screen. Then in the “View All” tab of the post type and the top selection should be the archive page.
This just masks it to be a custom menu item type instead of having to manually enter it in to create the menu. Currently there is not a way to create a new menu item type other than what is already available to you.