From 19b0d00397887b15546c9b1c1effc6c7c7e86d10 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 29 Jan 2019 15:35:18 -0500 Subject: [PATCH] Update for post type setup publicly queryable should be false. --- index.php | 2 +- models/job.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 97ad909..4d237e1 100644 --- a/index.php +++ b/index.php @@ -2,7 +2,7 @@ /** * Plugin Name: Emmet County Employment * Description: Online Employment Application for Gaslight Media Clients. - * Version: 1.1.2 + * Version: 1.1.3 * Author: Steve Sutton * Author URI: http://www.gaslightmedia.com * License: All right reserved diff --git a/models/job.php b/models/job.php index 6f47b9c..3b62143 100644 --- a/models/job.php +++ b/models/job.php @@ -343,12 +343,12 @@ class emmet_employment_job 'menu_icon' => 'dashicons-businessman', 'capability_type' => 'post', 'hierarchical' => false, - 'rewrite' => array('slug' => 'jobs'), + // 'rewrite' => array('slug' => 'jobs'), 'taxonomies' => array(EMMET_EMP_TAX_CATEGORIES, EMMET_EMP_TAX_DEPARTMENTS), 'show_in_menu' => true, 'show_ui' => true, 'query_var' => true, - 'publicly_queryable' => true + 'publicly_queryable' => false ); register_post_type(EMMET_EMP_POST_TYPE, $args); register_taxonomy_for_object_type(EMMET_EMP_TAX_CATEGORIES, -- 2.17.1