I'm creating a new tab that is the same as "page", but separated as the image.
TheproblemisthatIcreatedacustomtemplate,thatis,Icreatedmytheme,inthe"pages" tab the template option appears
Inthe"locations" tab I created, the template option does not appear, does anyone know how to put it?
Follow the code for the register.
function locations_register(){
$labels = array(
'name' => _x('Locations','post type general name'),
'singular_name' => _x('Locations', 'post type singular name'),
'add_new' => _x('Add new location', 'location'),
'add_new_item' => __('Add new location'),
'edit_item' => __('Edit location'),
'new_item' => __('New location'),
'view_item' => __('View location'),
'search_items' => __('Search location'),
'not_found' => __('Nothing Result'),
'not_found_in_trash' => __('Nothing result on the bin'),
'parent_item_colon' => ''
);
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'query_var' => true,
'rewrite' => true,
'has_archive' => false,
'capability_type' => 'page',
'hierarchical' => true,
'menu_position' => 4,
'taxonomies'=> array('features'),
'supports' => array('title','thumbnail','editor','page-attributes')
);
register_post_type('location', $args);
}