Job Listing Post Type
This script is for adding Job Listing Custom Post Type in WP website.
// Register Custom Post Type function job_listing_post_type() { $labels = array( 'name' => _x( 'Job Listings', 'Post Type General Name', 'job-listing' ), 'singular_name' => _x( 'Job Listing', 'Post Type Singular Name', 'job-listing' ), 'menu_name' => __( 'Job Listings', 'job-listing' ), 'name_admin_bar' => __( 'Job Listing', 'job-listing' ), 'archives' => __( 'Job Listing Archives', 'job-listing' ), 'attributes' => __( 'Job Listing Attributes', 'job-listing' ), 'parent_item_colon' => __( 'Parent Job Listing:', 'job-listing' ), 'all_items' => __( 'All Job Listings', 'job-listing' ), 'add_new_item' => __( 'Add New Job Listing', 'job-listing' ), 'add_new' => __( 'Add New', 'job-listing' ), 'new_item' => __( 'New Job Listing', 'job-listing' ), 'edit_item' => __( 'Edit Job Listing', 'job-listing' ), 'update_item' => __( 'Update Job Listing', 'job-listing' ), 'view_item' => __( 'View Job Listing', 'job-listing' ), 'view_items' => __( 'View Job Listings', 'job-listing' ), 'search_items' => __( 'Search Job Listing', 'job-listing' ), 'not_found' => __( 'Not found', 'job-listing' ), 'not_found_in_trash' => __( 'Not found in Trash', 'job-listing' ), 'featured_image' => __( 'Featured Image', 'job-listing' ), 'set_featured_image' => __( 'Set featured image', 'job-listing' ), 'remove_featured_image' => __( 'Remove featured image', 'job-listing' ), 'use_featured_image' => __( 'Use as featured image', 'job-listing' ), 'insert_into_item' => __( 'Insert into Job Listing', 'job-listing' ), 'uploaded_to_this_item' => __( 'Uploaded to this Job Listing', 'job-listing' ), 'items_list' => __( 'Job Listings list', 'job-listing' ), 'items_list_navigation' => __( 'Job Listings list navigation', 'job-listing' ), 'filter_items_list' => __( 'Filter Job Listings list', 'job-listing' ), ); $args = array( 'label' => __( 'Job Listing', 'job-listing' ), 'description' => __( 'This post type is for job listings.', 'job-listing' ), 'labels' => $labels, 'supports' => array( 'title', 'editor' ), 'taxonomies' => array( 'job_category', ' job_type' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-admin-settings', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'job_listing', $args ); } add_action( 'init', 'job_listing_post_type', 0 );