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
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
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
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
Great,
do you know if i can override this function with function or hooks in my custom function.php file?
David
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
I understand,
can this question be escalated to the developer of this function or the developer that is responsible for this function?
Thanks,
David
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
Great,
Thanks,
I will wait for an update.
David
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
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