Adding a Custom Post Type into the menu screen

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 :-/

2

To get your custom post types to show up in Appearance -> Menus, you need to do two things:

  1. Check your arguments and make sure that show_in_nav_menus is set to true.

  2. 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!

Leave a Comment