Fiesta Bowl Records
// Register Custom Post Type
function fiestarecords_post_type() {
$labels = array(
'name' => 'Records',
'singular_name' => 'Record',
'menu_name' => 'Fiesta Bowl Records',
'name_admin_bar' => 'Fiesta 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' => 'fiesta-bowl-records',
'with_front' => true,
'pages' => true,
'feeds' => true,
);
$args = array(
'label' => 'fiesta_records',
'description' => 'Fiesta 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( 'fiesta_records', $args );
}
// Hook into the 'init' action
add_action( 'init', 'fiestarecords_post_type', 0 );