Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

bezp – landing page

// Register Custom Post Type
function landingpage_post_type() {

	$labels = array(
		'name'                => _x( 'Landing pages', 'Post Type General Name', 'bp' ),
		'singular_name'       => _x( 'Landing page', 'Post Type Singular Name', 'bp' ),
		'menu_name'           => __( 'Landing Pages', 'bp' ),
		'name_admin_bar'      => __( 'Landing Page', 'bp' ),
		'parent_item_colon'   => __( 'Nadřazená Landing page', 'bp' ),
		'all_items'           => __( 'Všechny Landing pages', 'bp' ),
		'add_new_item'        => __( 'Přidat novou Landing page', 'bp' ),
		'add_new'             => __( 'Přidat novou', 'bp' ),
		'new_item'            => __( 'Nová Landing page', 'bp' ),
		'edit_item'           => __( 'Upravit Landing page', 'bp' ),
		'update_item'         => __( 'Aktualizovat Landing page', 'bp' ),
		'view_item'           => __( 'Zobrazit Landing page', 'bp' ),
		'search_items'        => __( 'Hledat Landing page', 'bp' ),
		'not_found'           => __( 'Nenalezeno', 'bp' ),
		'not_found_in_trash'  => __( 'Nenalezeno v koši', 'bp' ),
	);
	$args = array(
		'label'               => __( 'landingpage', 'bp' ),
		'description'         => __( 'Hlavní stránky témat a homepage', 'bp' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', ),
		'taxonomies'          => array( 'tema' ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'menu_position'       => 5,
		'menu_icon'           => 'dashicons-welcome-widgets-menus',
		'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'     => 'page',
	);
	register_post_type( 'landingpage', $args );

}

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