I have created a custom post type and registered it using this code
$labels = array(
'name' => __( 'Portfolio' ),
'singular_name' => __( 'Portfolio' )
);
$args = array(
'labels' => $labels,
'public' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'show_ui' => true,
'query_var' => true,
'capability_type' => 'post',
'hierarchical' => false,
'menu_position' => null,
'supports' => array('title','editor','thumbnail','custom-fields', 'page-attributes', 'excerpt', 'revisions'),
'show_in_nav_menu' => true
);
register_post_type('portfolio',$args);
I can create a portfolio post type and save it. It all works as expected until I go to Appearance > Menus where I can add the portfolio to the menu but it wont show up in the index template using this code
wp_nav_menu(array('theme_location'=>'main_menu'));
All the other menu items show properly just not the custom post types. If you look at the screenshot, all that is shown in the front end is 'Shortcodes' link and 'BBC' link (so page and custom link - not portfolio link)
Help! I need those links in there.