Skip Navigation

[Resolved] CPT with publicly_queryable = false. Does not show up in CRED Post type to creat

This support ticket is created 6 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Author
Posts
#1177457

I am trying to:
Make a form to edit my CPT with publicly_queryable unchecked.

I expected to see:
My CPT in the edit box called "Post type to create/edit: "

Instead, I got:
Nothing.

This is due to the CPT setting publicly_queryable which I want to be unchecked. Workaround is to temporary enable this setting, than edit my edit form, (then CPT is visible in the drop down menu) save edit form, and then uncheck the publicly_queryable setting again.

#1177458

Hello,

This is expected result, Toolset post form is for Editing/creating posts in front-end, so the post type is required to be "publicly_queryable".

See WordPress document:
https://codex.wordpress.org/Function_Reference/register_post_type#publicly_queryable

publicly_queryable
(boolean) (optional) Whether queries can be performed on the front end as part of parse_request()

#1177504

Hmm. But actually I want this editor to work but i don't want people to query all the posts in my custom post type like "website.com/?post_type=mycustomposttypename"

#1177540

In your case, I suggest you enable option "publicly_queryable"
and use Access plugin, disable "Read" permission of custom post type for guests users, see our document:
https://toolset.com/documentation/user-guides/setting-access-control/