CPT – Jobs
Jobs Post Types
if ( ! function_exists('Job') ) { // Register Custom Post Type function Job() { $labels = array( 'name' => _x( 'Jobs', 'Post Type General Name', '_scorch' ), 'singular_name' => _x( 'Job', 'Post Type Singular Name', '_scorch' ), 'menu_name' => __( 'Jobs', '_scorch' ), 'name_admin_bar' => __( 'Jobs', '_scorch' ), 'archives' => __( 'Job Archives', '_scorch' ), 'attributes' => __( 'Item Attributes', '_scorch' ), 'parent_item_colon' => __( 'Parent Job:', '_scorch' ), 'all_items' => __( 'All Jobs', '_scorch' ), 'add_new_item' => __( 'Add New Job', '_scorch' ), 'add_new' => __( 'Add New', '_scorch' ), 'new_item' => __( 'New Job', '_scorch' ), 'edit_item' => __( 'Edit Job', '_scorch' ), 'update_item' => __( 'Update Job', '_scorch' ), 'view_item' => __( 'View Job', '_scorch' ), 'view_items' => __( 'View Items', '_scorch' ), 'search_items' => __( 'Search Job', '_scorch' ), 'not_found' => __( 'Not found', '_scorch' ), 'not_found_in_trash' => __( 'Not found in Trash', '_scorch' ), 'featured_image' => __( 'Featured Image', '_scorch' ), 'set_featured_image' => __( 'Set featured image', '_scorch' ), 'remove_featured_image' => __( 'Remove featured image', '_scorch' ), 'use_featured_image' => __( 'Use as featured image', '_scorch' ), 'insert_into_item' => __( 'Insert into Job', '_scorch' ), 'uploaded_to_this_item' => __( 'Uploaded to this Job', '_scorch' ), 'items_list' => __( 'Jobs list', '_scorch' ), 'items_list_navigation' => __( 'Jobs list navigation', '_scorch' ), 'filter_items_list' => __( 'Filter jobs list', '_scorch' ), ); $args = array( 'label' => __( 'Job', '_scorch' ), 'description' => __( 'Create a Job Listing', '_scorch' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes' ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-list-view', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => 'jobs', 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'job', $args ); } add_action( 'init', 'Job', 0 ); }