1
I am creating a new tab equal to "page" however, separate, staying as the image.
The problem is that I created a custom template, I created my theme myself, in the "pages" tab appears the template option
Only that in this tab "Locations" that I created does not appear the template option, someone knows how to put?
Follow the code of the Registry.
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);
}