Job Postings
job postings
// Register Custom Post Type function register_job_posting() { $labels = array( 'name' => _x( 'Job Postings', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Job Posting', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Job Postings', 'text_domain' ), 'parent_item_colon' => __( 'Job Posting', 'text_domain' ), 'all_items' => __( 'All Job Postings', 'text_domain' ), 'view_item' => __( 'Job Posting', 'text_domain' ), 'add_new_item' => __( 'Add New Job Posting', 'text_domain' ), 'add_new' => __( 'Add New Job Posting', 'text_domain' ), 'edit_item' => __( 'Edit Job Posting', 'text_domain' ), 'update_item' => __( 'Update Job Posting', 'text_domain' ), 'search_items' => __( 'Search Job Postings', 'text_domain' ), 'not_found' => __( 'Job Postings Not found', 'text_domain' ), 'not_found_in_trash' => __( 'Job Postings Not found in Trash', 'text_domain' ), ); $rewrite = array( 'slug' => 'careers', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'job_posting', 'text_domain' ), 'description' => __( 'Job postings for CHF', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'comments', 'revisions', 'custom-fields', 'page-attributes', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-admin-users', 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'post', ); register_post_type( 'job_posting', $args ); } // Hook into the 'init' action add_action( 'init', 'register_job_posting', 0 );