Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Projekty – EN

// Register Custom Post Type
function projekty_post_type() {

	$labels = array(
		'name'                  => _x( 'Projekty', 'Post Type General Name', 'preklad' ),
		'singular_name'         => _x( 'Projekt', 'Post Type Singular Name', 'preklad' ),
		'menu_name'             => __( 'Projekty', 'preklad' ),
		'name_admin_bar'        => __( 'Přidat projekt', 'preklad' ),
		'archives'              => __( 'Archiv', 'preklad' ),
		'attributes'            => __( 'Vlastnosti', 'preklad' ),
		'parent_item_colon'     => __( 'Nadřazená', 'preklad' ),
		'all_items'             => __( 'Všechny dotační tituly', 'preklad' ),
		'add_new_item'          => __( 'Přidat referenci', 'preklad' ),
		'add_new'               => __( 'Přidat', 'preklad' ),
		'new_item'              => __( 'Nový projekt', 'preklad' ),
		'edit_item'             => __( 'Upravit', 'preklad' ),
		'update_item'           => __( 'Aktualizovat', 'preklad' ),
		'view_item'             => __( 'Zobrazit', 'preklad' ),
		'view_items'            => __( 'Zobrazit', 'preklad' ),
		'search_items'          => __( 'Hledat', 'preklad' ),
		'not_found'             => __( 'Nenalezeno', 'preklad' ),
		'not_found_in_trash'    => __( 'Nenalezeno v koši', 'preklad' ),
		'featured_image'        => __( 'Náhledový obrázek', 'preklad' ),
		'set_featured_image'    => __( 'Nastavit obrázek', 'preklad' ),
		'remove_featured_image' => __( 'Odebrat', 'preklad' ),
		'use_featured_image'    => __( 'Použít fotku', 'preklad' ),
		'insert_into_item'      => __( 'Vložit položku', 'preklad' ),
		'uploaded_to_this_item' => __( 'Uploaded to this item', 'preklad' ),
		'items_list'            => __( 'Soupis položek', 'preklad' ),
		'items_list_navigation' => __( 'Navigace v položkách', 'preklad' ),
		'filter_items_list'     => __( 'Filtrovat', 'preklad' ),
	);
	$args = array(
		'label'                 => __( 'Projekt', 'preklad' ),
		'description'           => __( 'Popisek', 'preklad' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'thumbnail', 'revisions' ),
		'hierarchical'          => false,
		'public'                => false,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 25,
		'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'    => true,
		'capability_type'       => 'post',
	);
	register_post_type( 'projects', $args );

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