WG Awards
// Register Custom Post Type
function wg_awards() {
$labels = array(
'name' => 'Awards',
'singular_name' => 'Award',
'menu_name' => 'Awards',
'parent_item_colon' => 'Parent Item:',
'all_items' => 'All Items',
'view_item' => 'View Item',
'add_new_item' => 'Add New Award',
'add_new' => 'Add New Award',
'edit_item' => 'Edit Award',
'update_item' => 'Update Award',
'search_items' => 'Search Awards',
'not_found' => 'Not found',
'not_found_in_trash' => 'Not found in Trash',
);
$args = array(
'label' => 'awards',
'description' => 'List-o-awards',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'revisions', 'page-attributes', ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 25,
'can_export' => true,
'has_archive' => false,
'exclude_from_search' => false,
'publicly_queryable' => true,
'rewrite' => false,
'capability_type' => 'page',
);
register_post_type( 'awards', $args );
}
// Hook into the 'init' action
add_action( 'init', 'wg_awards', 0 );