Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Cactus Bowl Records

// Register Custom Post Type
function cactusrecords_post_type() {

	$labels = array(
		'name'                => 'Records',
		'singular_name'       => 'Record',
		'menu_name'           => 'Cactus Bowl Records',
		'name_admin_bar'      => 'Cactus Bowl Records',
		'parent_item_colon'   => 'Parent Record:',
		'all_items'           => 'All Records',
		'add_new_item'        => 'Add New Record',
		'add_new'             => 'Add New',
		'new_item'            => 'New Record',
		'edit_item'           => 'Edit Record',
		'update_item'         => 'Update Record',
		'view_item'           => 'View Record',
		'search_items'        => 'Search Records',
		'not_found'           => 'Not found',
		'not_found_in_trash'  => 'Not found in Trash',
	);
	$rewrite = array(
		'slug'                => 'cactus-bowl-records',
		'with_front'          => true,
		'pages'               => true,
		'feeds'               => true,
	);
	$args = array(
		'label'               => 'cactus_records',
		'description'         => 'Cactus Bowl Records',
		'labels'              => $labels,
		'supports'            => array( 'title', 'thumbnail', ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'menu_position'       => 20,
		'menu_icon'           => 'dashicons-awards',
		'show_in_admin_bar'   => true,
		'show_in_nav_menus'   => true,
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'rewrite'             => $rewrite,
		'capability_type'     => 'post',
	);
	register_post_type( 'cactus_records', $args );

}

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