Skip Navigation

[Résolu] Post Types connected to this form: no cpt shown in the dropdown to be selected

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

Problem:

The issue here is that the user has created a CPT but this cpt isn't showing in the CRED Post Type selection.

Solution:

In order for a CPT to show up in the CRED post selection it must be set to publicly Queryable. This can be done by editing your CPT settings in types and then checking the publicly_queryable checkbox.

This support ticket is created Il y a 6 années et 8 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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 -

Supporter timezone: America/Jamaica (GMT-05:00)

Ce sujet contient 25 réponses, a 4 voix.

Dernière mise à jour par davidZ-4 Il y a 6 années et 7 mois.

Assisté par: Shane.

Auteur
Publications
#649478

Hi Shane,
i understand CRED front end limitation and i have no problem with it.

are you saying that the list of available Post Types in the CRED create/edit form (in the back end) are displayed based on "default wordpress functions"?
if so, how can override it to list the CTP in my CRED forms (edit mode in the back end)?

David

#650049

Shane
Supporter

Les langues: Anglais (English )

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

Hi David,

Yes that is what i'm saying.

Unfortunately i'm not aware of a way to overwrite this.

Thanks,
Shane

#650065

Ok, i get it.
last question. do you know what function is used to display the post types in the CRED form drop down?

David

#650195

Shane
Supporter

Les langues: Anglais (English )

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

Hi David,

After checking the CRED plugin code i found the reference to this function here.
suggestPostsTitleByTitle

This should be the function that is listing the CPT here.

Thanks,
Shane

#650199

Great,
do you know if i can override this function with function or hooks in my custom function.php file?

David

#650228

Shane
Supporter

Les langues: Anglais (English )

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

Hi David,

This is where i'm not sure since this is an internal function i'm sure it warrants more investigation.

I cannot say yes or no to this one.

Thanks,
Shane

#650230

I understand,
can this question be escalated to the developer of this function or the developer that is responsible for this function?

Thanks,

David

#650232

Shane
Supporter

Les langues: Anglais (English )

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

Hi David,

I've requested some assistance on this one.

Thanks,
Shane

#651168

Great,
Thanks,

I will wait for an update.

David

#652879

Shane
Supporter

Les langues: Anglais (English )

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

Hi David,

Sorry for the wait. I got some assistance on this but the conclusion essentially will be that you will need to have the post publicly_queryable but then you can disable archives for this CPT in the CPT Settings.

This will not allow the users to navigate to the archive page to see all the post.

So this will require a combination of Access to achieve.

You comment here :
"the posts should be seen only by authorized users and i dont mean user role."

This is possible to setup using our Access plugin as you can add individual permissions for specific users.

Thanks,
Shane

#654788

Thanks Shane,

this is not ideal. but i understand the limitation. i will use a workaround of enable and disable the publicly_queryable in order to edit the CRED form.

as for "This is possible to setup using our Access plugin as you can add individual permissions for specific users." unfortunately this is not a scale able model and require a manual work.

Thanks,

David