Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Boot

// Register Custom Post Type
function lz_post_type_boat() {

	$labels = array(
		'name'                  => _x( 'Boote', 'Post Type General Name', 'TEXT_DOMAIN' ),
		'singular_name'         => _x( 'Boot', 'Post Type Singular Name', 'TEXT_DOMAIN' ),
		'menu_name'             => __( 'Boote', 'TEXT_DOMAIN' ),
		'name_admin_bar'        => __( 'Boote', 'TEXT_DOMAIN' ),
		'archives'              => __( '', 'TEXT_DOMAIN' ),
		'attributes'            => __( 'Boots-Attribute', 'TEXT_DOMAIN' ),
		'parent_item_colon'     => __( '', 'TEXT_DOMAIN' ),
		'all_items'             => __( 'Alle Boote', 'TEXT_DOMAIN' ),
		'add_new_item'          => __( 'Neues Boot hinzufügen', 'TEXT_DOMAIN' ),
		'add_new'               => __( 'Neues hinzufügen', 'TEXT_DOMAIN' ),
		'new_item'              => __( 'Neues Boot', 'TEXT_DOMAIN' ),
		'edit_item'             => __( 'Boot bearbeiten', 'TEXT_DOMAIN' ),
		'update_item'           => __( 'Boot aktualisieren', 'TEXT_DOMAIN' ),
		'view_item'             => __( 'Boot ansehen', 'TEXT_DOMAIN' ),
		'view_items'            => __( 'Boote ansehen', 'TEXT_DOMAIN' ),
		'search_items'          => __( 'Boot suchen', 'TEXT_DOMAIN' ),
		'not_found'             => __( 'Nicht gefunden', 'TEXT_DOMAIN' ),
		'not_found_in_trash'    => __( 'Nicht im Mülleimer gefunden', 'TEXT_DOMAIN' ),
		'featured_image'        => __( 'Rendering', 'TEXT_DOMAIN' ),
		'set_featured_image'    => __( 'Rendering setzen', 'TEXT_DOMAIN' ),
		'remove_featured_image' => __( 'Rendering entfernen', 'TEXT_DOMAIN' ),
		'use_featured_image'    => __( 'Als Rendering verwenden', 'TEXT_DOMAIN' ),
		'insert_into_item'      => __( 'Zum Boot hinzufügen', 'TEXT_DOMAIN' ),
		'uploaded_to_this_item' => __( 'Zum Boot hinzufügen', 'TEXT_DOMAIN' ),
		'items_list'            => __( 'Bootsliste', 'TEXT_DOMAIN' ),
		'items_list_navigation' => __( 'Bootsliste Navigation', 'TEXT_DOMAIN' ),
		'filter_items_list'     => __( 'Bootsliste filtern', 'TEXT_DOMAIN' ),
	);
	$args = array(
		'label'                 => __( 'Boot', 'TEXT_DOMAIN' ),
		'description'           => __( 'Alle Bootsmodelle', 'TEXT_DOMAIN' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'thumbnail', 'revisions', 'page-attributes' ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 20,
		'menu_icon'             => 'dashicon-flag',
		'show_in_admin_bar'     => false,
		'show_in_nav_menus'     => false,
		'can_export'            => true,
		'has_archive'           => false,
		'exclude_from_search'   => true,
		'publicly_queryable'    => true,
		'rewrite'               => false,
		'capability_type'       => 'page',
	);
	register_post_type( 'boat', $args );

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