Alpha Specialties – Award Cases
// Register Custom Post Type
function Award_Case() {
$labels = array(
'name' => 'Award Cases',
'singular_name' => 'Award Case',
'menu_name' => 'Award Cases',
'name_admin_bar' => 'Award Case',
'archives' => 'Award Case Archives',
'attributes' => 'Award Cases Attributes',
'parent_item_colon' => 'Parent Award Case:',
'all_items' => 'All Award Cases',
'add_new_item' => 'Add New Award Case',
'add_new' => 'Add Award Case',
'new_item' => 'New Award Case',
'edit_item' => 'Edit Award Case',
'update_item' => 'Update Award Case',
'view_item' => 'View Award Case',
'view_items' => 'View Award Cases',
'search_items' => 'Search Award Case',
'not_found' => 'Award Case Not found',
'not_found_in_trash' => 'Award Case Not found in Trash',
'featured_image' => 'Featured Image',
'set_featured_image' => 'Set featured image',
'remove_featured_image' => 'Remove featured image',
'use_featured_image' => 'Use as featured image',
'insert_into_item' => 'Insert into Award Case',
'uploaded_to_this_item' => 'Uploaded to this Award Case',
'items_list' => 'Award Cases list',
'items_list_navigation' => 'Items Award Case navigation',
'filter_items_list' => 'Filter Award Cases list',
);
$rewrite = array(
'slug' => 'award-case',
'with_front' => true,
'pages' => true,
'feeds' => true,
);
$args = array(
'label' => 'Award Case',
'description' => 'Award Case Description',
'labels' => $labels,
'supports' => array( 'title', 'thumbnail', 'custom-fields' ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-awards',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => 'awards-gallery',
'exclude_from_search' => false,
'publicly_queryable' => true,
'rewrite' => $rewrite,
'capability_type' => 'post',
);
register_post_type( 'award-case', $args );
}
add_action( 'init', 'Award_Case', 0 );