Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Klienci

// Register Custom Post Type
function klienci() {

	$labels = array(
		'name'                => 'Klienci',
		'singular_name'       => 'Klient',
		'menu_name'           => 'Post Type',
		'name_admin_bar'      => 'Post Type',
		'parent_item_colon'   => 'Parent Item:',
		'all_items'           => 'All Items',
		'add_new_item'        => 'Add New Item',
		'add_new'             => 'Add New',
		'new_item'            => 'New Item',
		'edit_item'           => 'Edit Item',
		'update_item'         => 'Update Item',
		'view_item'           => 'View Item',
		'search_items'        => 'Search Item',
		'not_found'           => 'Not found',
		'not_found_in_trash'  => 'Not found in Trash',
	);
	$args = array(
		'label'               => 'Klient',
		'labels'              => $labels,
		'supports'            => array( 'title', ),
		'taxonomies'          => array( 'miejsca_klienci' ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'menu_position'       => 5,
		'menu_icon'           => 'dashicons-welcome-view-site',
		'show_in_admin_bar'   => true,
		'show_in_nav_menus'   => true,
		'can_export'          => true,
		'has_archive'         => true,		
		'exclude_from_search' => false,
		'publicly_queryable'  => false,
		'rewrite'             => false,
		'capability_type'     => 'post',
	);
	register_post_type( 'klient', $args );

}
add_action( 'init', 'klienci', 0 );