Passer la navigation

[Résolu] CPT missing in Form definition dropdown

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

The issue here is that the user is unable to see their Custom Post Type in the Toolset form post selection dropdown.

Solution:
This occurs when your Custom Post type is not declared as publicly_queryable

To enable this option you will need to go to Toolset -> Post Types and edit your Custom Post type and you should see publicly_queryable under Options.

This support ticket is created Il y a 4 années et 1 mois. 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Fuseau horaire du supporter : America/Jamaica (GMT-05:00)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par neilR Il y a 4 années et 1 mois.

Assisté par: Shane.

Auteur
Publications
#2080269
Working_Form_Settings_2.jpg
Working_Form_Settings.jpg
Post_Types_List.jpg
Post_Forms_List.jpg
Dashboard_Entry.jpg
CPT_settings.jpg

I am trying to create a new form to manage a CPT. I already have a form created 2 years ago which creates the CPT, and which works fine.
I now wish to create an 'edit' form for the CPT.

The CPT appears in the list of CPTs in Toolset and on the Dashboard. (att. Post_Types_List, Dashboard_Entry)
The CPT does not appear in the dropdown in the Form definition, either in the existing form (att Post_Forms_List) or when creating a new form (att Working_Form_Settings, Working_Form_Settings_2)
The CPT is set to have a ui (att. CPT_settings)

It seems odd that the only place it seems to be missing is in the Forms dialog...? The site was moved this year from a multisite subsite to its own installation. Might this have caused some sort of mis-registration - though why only one CPT affected...? Struggling to come up with a plausible explanation, or indeed a solution!

Thanks for your help.
Neil

#2080423

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Neil,

Thank you for getting in touch. In your CPT settings screenshot I can see that publicly_queryable is disabled.

In order for the post type to show up there it needs to be selected.

Once it has been selected then the CPT should start showing again in the dropdown.

Thanks,
Shane

#2080471

Sooooo easy when you know where to look 🙂
Thanks Shane.
Problem solved!