I have one small problem and I can't find answer...I have created custom post type and custom taxonomy, but my custom taxonomy is showing as sub menu under custom pos type, here is example what I need how can I do this??? here is how my taxonomy and post type is registered:
<?php
function inkodus_register_taxonomy() {
// set up labels
$labels = array(
'name' => 'Manufactures',
'singular_name' => 'Manufacture',
'search_items' => 'Search Manufactures',
'all_items' => 'All Manufactures',
'edit_item' => 'Edit Manufacture',
'update_item' => 'Update Manufacture',
'add_new_item' => 'Add New Manufactures',
'new_item_name' => 'New Manufactures',
'menu_name' => 'Manufactures'
);
// register taxonomy
register_taxonomy( 'manufactures', 'manufactures', array(
'hierarchical' => true,
'labels' => $labels,
'query_var' => true,
'show_admin_column' => false,
'show_ui' => true
) );
}
add_action( 'init', __NAMESPACE__ . '\\inkodus_register_taxonomy' );
function inkodus_create_post_type() {
//setting up labels
$labels = array(
'name' => 'Furnitures-systems list',
'singular_name' => 'Furniture-system',
'add_new' => 'Add New System',
'add_new_item' => 'Add New Furniture-System',
'edit_item' => 'Edit System',
'new_item' => 'New Furniture-system',
'all_items' => 'All Systems',
'view_item' => 'View System',
'search_items' => 'Search furniture-systems',
'not_found' => 'Furniture systems not found',
'not_found_in_trash' => 'Furniture systems found in Trash',
'parent_item_colon' => '',
'menu_name' => 'Furniture Systems
',
);
//registering post type
register_post_type( 'furnituresystem', array(
'labels' => $labels,
'has_archive' => true,
'public' => true,
'supports' => array( 'title', 'editor'), //'excerpt', 'custom-fields', 'thumbnail','page-attributes' ),
'taxonomies' => array('manufactures' ),
'exclude_from_search' => false,
'capability_type' => 'post',
'rewrite' => array( 'slug' => 'furnituresystem' ),
'register_meta_box_cb' => 'add_attributes_metabox'
)
);
}
add_action( 'init', __NAMESPACE__ . '\\inkodus_create_post_type' );
?>