From: Steve Sutton Date: Tue, 29 Jan 2019 20:17:34 +0000 (-0500) Subject: Make it so the page is not publicly queryable X-Git-Tag: v1.0.2^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=62d284d4f8279bc3778c3a365d4b50a5f5d14b2d;p=WP-Plugins%2Fstaffords-employment.git Make it so the page is not publicly queryable Only using the correct url can the detail page be seen. --- diff --git a/models/job.php b/models/job.php index 1d62382..e740ace 100644 --- a/models/job.php +++ b/models/job.php @@ -344,7 +344,7 @@ class staffords_employment_job 'show_in_menu' => true, 'show_ui' => true, 'query_var' => true, - 'publicly_queryable' => true + 'publicly_queryable' => false ); register_post_type(STAFFORDS_EMP_POST_TYPE, $args); register_taxonomy_for_object_type(STAFFORDS_EMP_TAX_CATEGORIES,