Hi
I have set up a front end form for a user to add a new "offer" to the site, one of these fields is "program" which is another CPT which currently lists all programs. I would like it to only list programs they are the author of, as they should only be able to add offers to their "programs".
Is this possible? Seems like something that other people may have tried to do but I couldn't manage to find anything on the forums.
Thanks
Hi,
Thank you for contacting us and I'd be happy to assist.
In the "Program" selection field's setting, you can select the "Get only options by the current author" option for this.
( example screenshot attached )
Note: in case you're using the expert mode, you can add attribute author='$current' to the cred_field shortcode for this field.
( ref: https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred_field )
regards,
Waqar
Awesome that works great, I was using the advanced editor so I never saw those options. Cheers 🙂