Skip Navigation

[Resolved] The forms plugin does not see the option to create a new post type

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.

This topic contains 1 reply, has 2 voices.

Last updated by Christopher Amirian 1 year, 7 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2588813

Everything worked fine in previous versions of the plugin. When I tried to change the form, I found it impossible to select the type of post I needed.

Investigation showed that "publicly_queryable" option was not used in my post type. If this option is enabled, then everything works. But I don't need to render pages of this post type.
The form is used to add content that is used on other pages and does not have its own pages.

#2589851

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

The publicly_queryable option determines whether queries can be performed on the front end for the post type as part of parse_request():

https://developer.wordpress.org/reference/functions/register_post_type/#:~:text=publicly_queryable%20bool,as%20part%20of%20parse_request().

From what I know that is necessary for Toolset to be able to query from no matter you will use it in a page or not.

Please consider that adding a form to enter data means that the post needs to be queryable. You always can limit access to the form for the viewers of the website using the Toolset Access plugin.

Thank you.