I added a taxonomy and customized publish sort, however for some motive, my taxonomy is not exhibiting up after I add a brand new marker. I half anticipated it to be there like when choosing a class for a publish, but it surely is not. Any concepts what the problem is perhaps?
perform register_mm_post_types()
{
register_taxonomy('marker_types',
array('markers'),
array(
'labels' => array(
'title' => __('Marker sort', 'moxxie'),
'singular_name' => __('Marker sort', 'moxxie'),
'search_items' => __('Search marker sorts', 'moxxie'),
'all_items' => __('All marker sorts', 'moxxie'),
'parent_item' => __('Mother or father marker sort', 'moxxie'),
'parent_item_colon' => __('Mother or father marker sort:', 'moxxie'),
'edit_item' => __('Edit marker sort', 'moxxie'),
'update_item' => __('Replace marker sort', 'moxxie'),
'add_new_item' => __('Add new marker sort', 'moxxie'),
'new_item_name' => __('New marker sort title', 'moxxie'),
'menu_name' => __('Marker sorts', 'moxxie')
),
'show_ui' => true,
'query_var' => true,
'hierarchical' => true,
'show_admin_column' => true,
'rewrite' => array('slug' => 'marker_types')
));
register_post_type('markers',
array( 'taxonomies' => array('marker_types'),
'labels' => array(
'title' => __('Map markers', 'moxxie'),
'singular_name' => __('Marker', 'moxxie'),
'add_new' => __('Add a brand new marker', 'moxxie'),
'edit_item' => __('Edit marker', 'moxxie'),
'new_item' => __('New marker', 'moxxie'),
'view_item' => __('View marker', 'moxxie'),
'search_items' => __('Search in maps', 'moxxie'),
'not_found' => __('No markers discovered', 'moxxie'),
'not_found_in_trash' => __('No markers present in trash', 'moxxie')
),
'has_archive' => true,
'show_in_rest' => true,
'hierarchical' => true,
'public' => true,
'menu_icon' => 'dashicons-location',
'capability_type' => 'publish'
));
}
add_action('init', 'register_mm_post_types', 1);
As you may see, no taxonomy is proven. It must seem within the right-hand column, identical to classes do in posts.