Update for post type setup
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 29 Jan 2019 20:35:18 +0000 (15:35 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 29 Jan 2019 20:35:18 +0000 (15:35 -0500)
publicly queryable should be false.

index.php
models/job.php

index 97ad909..4d237e1 100644 (file)
--- 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
index 6f47b9c..3b62143 100644 (file)
@@ -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,