I am add new post type called journal using below code it works fine. But I now I need to add a single category for this post type. That is I have two types of journal category normal journal and featured journals. But my blog post has some more categories I need to display only normal journal and featured journals on my journal list how can I do this. I am newbie in Wordpress coding. Thanks.
function post_type_journal()
{
$args = array(
'labels' => array(
'name' => 'Journals',
'singular_name' => 'Journal',
'add_new' => 'Add new journal',
'edit_item' => 'Edit journal',
'new_item' => 'New journal',
'view_item' => 'View journal',
'search_items' => 'Search journal',
'not_found' => 'No journals found',
'not_found_in_trash' => 'No journals found in Trash'
),
'public' => true,
'supports' => array(
'title',
'editor',
'author',
'comments'
),
'taxonomies' => array('category') // this is IMPORTANT
);
register_post_type('Journal', $args);
}
add_action('init','post_type_journal');