Title: Publicly Queryable
Last modified: May 17, 2019

---

# Publicly Queryable

 *  Resolved [Jenish Shrestha](https://wordpress.org/support/users/jenish11/)
 * (@jenish11)
 * [7 years ago](https://wordpress.org/support/topic/publicly-queryable/)
 * Hi,
    Your plugin is just awesome. But i have been facing this problem. When i
   create a custom post type and turn publicly queryable option to false and archive
   to true, archive page gets redirected back to homepage where as only single page
   is supposed to be off not the archive. When i set publicly queryable to true 
   again then it works, but i don’t need single page for this CPT. Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [7 years ago](https://wordpress.org/support/topic/publicly-queryable/#post-11543059)
 * Not sure this “disabling” of the single post view is really accomplishable via
   the settings for a post type. I would probably end up going the route of doing
   a redirect when requesting the single post type view.
 * Perhaps something like [https://www.daddydesign.com/wordpress/how-to-redirect-all-single-posts-of-a-custom-post-type-in-wordpress/](https://www.daddydesign.com/wordpress/how-to-redirect-all-single-posts-of-a-custom-post-type-in-wordpress/)
   which would go in your active theme’s functions.php file or somewhere else you
   may have that can take custom code.
 *  Thread Starter [Jenish Shrestha](https://wordpress.org/support/users/jenish11/)
 * (@jenish11)
 * [7 years ago](https://wordpress.org/support/topic/publicly-queryable/#post-11546476)
 * Thanks for your reply. I tried a custom code for CPT and same thing is happening
   there as well. It seems its a WP default behavior.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Publicly Queryable’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jenish Shrestha](https://wordpress.org/support/users/jenish11/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/publicly-queryable/#post-11546476)
 * Status: resolved