Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

lodicky-tabs

// Register Custom Post Type
function tabbedcontent_post_type() {

	$labels = array(
		'name'                => 'Záložky',
		'singular_name'       => 'Záložky',
		'menu_name'           => 'Záložky',
		'name_admin_bar'      => 'Post Type',
		'parent_item_colon'   => 'Nadřaz. záložky',
		'all_items'           => 'Všechny záložky',
		'add_new_item'        => 'Přidat záložky',
		'add_new'             => 'Přidat nové',
		'new_item'            => 'Nové',
		'edit_item'           => 'Upravit',
		'update_item'         => 'Aktualizovat',
		'view_item'           => 'Zobrazit',
		'search_items'        => 'Hledat',
		'not_found'           => 'Nenalezeno',
		'not_found_in_trash'  => 'Nenalezeno v koši',
	);
	$args = array(
		'label'               => 'tabbed_content',
		'description'         => 'Obsah v záložkách',
		'labels'              => $labels,
		'supports'            => array( 'title', ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'menu_position'       => 5,
		'menu_icon'           => 'dashicons-index-card',
		'show_in_admin_bar'   => false,
		'show_in_nav_menus'   => false,
		'can_export'          => true,
		'has_archive'         => false,		
		'exclude_from_search' => true,
		'publicly_queryable'  => true,
		'capability_type'     => 'page',
	);
	register_post_type( 'tabbed_content', $args );

}

// Hook into the 'init' action
add_action( 'init', 'tabbedcontent_post_type', 0 );