Practical Resource
if ( ! function_exists('create_gep_post_types') ) {
// Register Custom Post Type
function create_gep_post_types() {
$labels = array(
'name' => _x( 'Practical Resources', 'Post Type General Name', 'gep_post_types' ),
'singular_name' => _x( 'Practical Resource', 'Post Type Singular Name', 'gep_post_types' ),
'menu_name' => __( 'Practical Resources', 'gep_post_types' ),
'name_admin_bar' => __( 'Practical Resource', 'gep_post_types' ),
'archives' => __( 'Practical Resource Archives', 'gep_post_types' ),
'attributes' => __( 'Practical Resource Attributes', 'gep_post_types' ),
'parent_item_colon' => __( 'Parent Practical Resource:', 'gep_post_types' ),
'all_items' => __( 'All Practical Resources', 'gep_post_types' ),
'add_new_item' => __( 'Add New Practical Resource', 'gep_post_types' ),
'add_new' => __( 'Add New', 'gep_post_types' ),
'new_item' => __( 'New Practical Resource', 'gep_post_types' ),
'edit_item' => __( 'Edit Practical Resource', 'gep_post_types' ),
'update_item' => __( 'Update Practical Resource', 'gep_post_types' ),
'view_item' => __( 'View Practical Resource', 'gep_post_types' ),
'view_items' => __( 'View Practical Resources', 'gep_post_types' ),
'search_items' => __( 'Search Practical Resource', 'gep_post_types' ),
'not_found' => __( 'Not found', 'gep_post_types' ),
'not_found_in_trash' => __( 'Not found in Bin', 'gep_post_types' ),
'featured_image' => __( 'Featured Image', 'gep_post_types' ),
'set_featured_image' => __( 'Set featured image', 'gep_post_types' ),
'remove_featured_image' => __( 'Remove featured image', 'gep_post_types' ),
'use_featured_image' => __( 'Use as featured image', 'gep_post_types' ),
'insert_into_item' => __( 'Insert into practical resource', 'gep_post_types' ),
'uploaded_to_this_item' => __( 'Uploaded to this practical resource', 'gep_post_types' ),
'items_list' => __( 'Practical Resources list', 'gep_post_types' ),
'items_list_navigation' => __( 'Practical Resources list navigation', 'gep_post_types' ),
'filter_items_list' => __( 'Filter practical resources list', 'gep_post_types' ),
);
$args = array(
'label' => __( 'Practical Resource', 'gep_post_types' ),
'description' => __( 'A collection of practical resources related to a work related activity', 'gep_post_types' ),
'labels' => $labels,
'supports' => array( 'title', 'editor' ),
'taxonomies' => array( 'specialism', 'profession' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-paperclip',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => false,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'practical_resource', $args );
}
add_action( 'init', 'create_gep_post_types', 0 );
}