Wondering why am not seeing categories?

function exec_bios_postType(){

	//bios for intel executives
	$labels = array(
		'name'               => 'Bios',
		'singular_name'      => 'bio' ,
		'menu_name'          => 'Executives Biographies',
		'name_admin_bar'     => 'Executives Biographies',
		'add_new'            => 'Add New',
		'add_new_item'       => 'Add New Bio',
		'new_item'           => 'New Bio',
		'edit_item'          => 'Edit Bio',
		'view_item'          => 'View Bios',
		'all_items'          => 'All Bios',
		'search_items'       => 'Search Bios',
		'parent_item_colon'  => 'Parent Bio',
		'not_found'          => 'No Biographies found',
		'not_found_in_trash' => 'No Biographies found in Trash.',
	);

	$args = array(
		'labels'             => $labels,        
		'public'             => true,
		'publicly_queryable' => true,
		'show_ui'            => true,
		'show_in_menu'       => true,
		'query_var'          => true,
		'rewrite'            => array( 'slug' => 'bios' ),
		'capability_type'    => 'post',
		'has_archive'        => true,
		'hierarchical'       => false,
		'menu_icon'      	 => 'dashicons-id-alt',
		'menu_position'      => 5,
		'supports'           => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'custom-fields' )
	);
	register_post_type('executivesBio',$args);

}
add_action('init','exec_bios_postType');

You need to use the ‘taxonomy’ argument so that the taxonomy and the custom post type are connected.

never mind…
needed to add

'taxonomies'		 => array('category','post_tag')

to the $args = array

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.