Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Lyrics

sixtyseven lyrics post type

// Register Custom Post Type
function custom_post_type() {

	$labels = array(
		'name'                  => _x( 'Songs', 'Post Type General Name', 'ss_lyrics' ),
		'singular_name'         => _x( 'Song', 'Post Type Singular Name', 'ss_lyrics' ),
		'menu_name'             => __( 'Songs', 'ss_lyrics' ),
		'name_admin_bar'        => __( 'Songs', 'ss_lyrics' ),
		'archives'              => __( 'Item Archives', 'ss_lyrics' ),
		'attributes'            => __( 'Song Attributes', 'ss_lyrics' ),
		'parent_item_colon'     => __( '', 'ss_lyrics' ),
		'all_items'             => __( 'All Songs', 'ss_lyrics' ),
		'add_new_item'          => __( 'Add New Song', 'ss_lyrics' ),
		'add_new'               => __( 'Add New', 'ss_lyrics' ),
		'new_item'              => __( 'New Song', 'ss_lyrics' ),
		'edit_item'             => __( 'Edit Song', 'ss_lyrics' ),
		'update_item'           => __( 'Update Song', 'ss_lyrics' ),
		'view_item'             => __( 'View Song', 'ss_lyrics' ),
		'view_items'            => __( 'View Songs', 'ss_lyrics' ),
		'search_items'          => __( 'Search Song', 'ss_lyrics' ),
		'not_found'             => __( 'Song not found', 'ss_lyrics' ),
		'not_found_in_trash'    => __( 'Song not found in Trash', 'ss_lyrics' ),
		'featured_image'        => __( 'Featured Image', 'ss_lyrics' ),
		'set_featured_image'    => __( 'Set featured image', 'ss_lyrics' ),
		'remove_featured_image' => __( 'Remove featured image', 'ss_lyrics' ),
		'use_featured_image'    => __( 'Use as featured image', 'ss_lyrics' ),
		'insert_into_item'      => __( 'Insert into Song', 'ss_lyrics' ),
		'uploaded_to_this_item' => __( 'Uploaded to this song', 'ss_lyrics' ),
		'items_list'            => __( 'Items list', 'ss_lyrics' ),
		'items_list_navigation' => __( 'Songs list navigation', 'ss_lyrics' ),
		'filter_items_list'     => __( 'Filter songs list', 'ss_lyrics' ),
	);
	$args = array(
		'label'                 => __( 'Song', 'ss_lyrics' ),
		'description'           => __( 'The songs and lyrics written and composed by sixtyseven', 'ss_lyrics' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'thumbnail', 'comments', 'revisions', ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'http://',
		'show_in_admin_bar'     => false,
		'show_in_nav_menus'     => true,
		'can_export'            => true,
		'has_archive'           => false,		
		'exclude_from_search'   => false,
		'publicly_queryable'    => true,
		'capability_type'       => 'post',
		'show_in_rest'          => true,
	);
	register_post_type( 'songs', $args );

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