Skip Navigation

[Resuelto] CRED form editor doesn’t show my custom post types in dropdown for post types

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

The 2 post types that I created are:

- Anmeldungen

- Veranstaltungen

They don't show up in the dropdown selector on the post forms page. When I try to edit the post form "Anmeldung", I can't save the settings, as the relation to the post type "Anmeldung" gets lost.

Interesting observation: I can create new custom post types that show up correctly (e.g. the "TestbeitragstypenTD" that I created today). So the problem is related specifically to my 2 post types that I had created a few weeks ago. I had edited the form several times over the past weeks without any problems.

Unfortunately there ist ongoing activity and data input on the production website, so I need a solution to repair the problem without redefining all the data structure.

Solution:

Q1) The 2 post types don't show up in the dropdown selector on the post forms page.

Since you setup those two post types as not "publicly_queryable", so CRED will not be able to edit/create those post, for example you can try this:

Edit the post type "Anmeldungen", in section "Options", enable the option "publicly_queryable", and test again.

More help:

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().

Q2) form "Anmeldung", I can't save the settings, as the relation to the post type "Anmeldung" gets lost.

Same as above, you will need to enable the option "publicly_queryable" for post type "Anmeldungen", and test again.

Relevant Documentation:

https://codex.wordpress.org/Function_Reference/register_post_type#publicly_queryable

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 3 respuestas, has 2 mensajes.

Last updated by thomasD-2 hace 3 años, 1 mes.

Assigned support staff: Luo Yang.

Autor
Mensajes
#626252

I created a booking system for a Yoga studio over the past weeks, it worked well and went live a few days ago.
Now I'm trying to make a small change to a CRED post form. But when I'm trying to save my changes, the form has lost the settings for for connected post types. In the dropdown option at the top of the page I can see only pages, posts and a post type that is connected by the theme, but none of the custom post types that I created via Types.
Furthermore I cannot create a new form that is connected to my custom post types.

On the toolset dashboard page my customs post types and the related forms are shown correctly.

Any idea how to fix this?

#626359

Luo Yang
Supporter

Languages: Inglés (English ) Chino simplificado (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hello,

The problem you mentioned above is abnormal, in case it is a compatibility problem, please try this:

1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

2) deactivate other plugins and switch to wordpress default theme, and test again, check if there is any JS error too:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#javascript-debugging

3) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, also point out the problem page URL, I need to test and debug it in my localhost, thanks

#628142

Luo Yang
Supporter

Languages: Inglés (English ) Chino simplificado (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Anmeldung.JPG

Thanks for the details, I can import your database dump file in my localhost.

Q1) The 2 post types don't show up in the dropdown selector on the post forms page.

Since you setup those two post types as not "publicly_queryable", so CRED will not be able to edit/create those post, for example you can try this:
Edit the post type "Anmeldungen", in section "Options", enable the option "publicly_queryable", and test again.

More help:
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().

Q2) form "Anmeldung", I can't save the settings, as the relation to the post type "Anmeldung" gets lost.

Same as above, you will need to enable the option "publicly_queryable" for post type "Anmeldungen", and test again.

I have tried it in my localhost, it works fine, see screenshot Anmeldung.JPG

#628327

Thx for the quick and helpful support. Indeed it works now with the setting "publicly_queryable".