When I switch back to a 2012 theme this post type is gone because its part of the theme. And nothing else breaks, just these posts under the custom post type Portfolio
. So here is the code snippet that creates the custom post type.
// Add custom post type Portfolio
add_action(‘init’, ‘themezee_add_portfolio’);
function themezee_add_portfolio()
{
register_post_type(‘portfolio’, array(
‘label’ => __(‘Portfolio’, ‘themezee_lang’),
‘public’ => true,
‘show_ui’ => true,
‘menu_position’ => 6,
‘has_archive’ => false,
‘rewrite’ => array(‘slug’=>’portfolio-item’),
‘supports’ => array(‘thumbnail’, ‘title’, ‘editor’ )
)
);
}
?>