From 62d284d4f8279bc3778c3a365d4b50a5f5d14b2d Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 29 Jan 2019 15:17:34 -0500 Subject: [PATCH] Make it so the page is not publicly queryable Only using the correct url can the detail page be seen. --- models/job.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.17.1