[Resolved] How to have conditional form based on the post ownership
This support ticket is created 7 years, 2 months ago. 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Hi,
I Have 4 CPTs with the following relationships:
Travel Agency(Parent) (One)< ----------->(Many)Tour(child)
Tour(Many)<----------------Tour-Hotel(CPT)--------------------->(Many)Hotel
I want to allow Travel agencies make their own CPTs(done via Cred), and then make their tours,
But each time they want to make a new tour , the below section allow them to choose the parent:
[cred_field field='_wpcf_belongs_travel-agencies_id' value=""]
My question is, how can I limit this list to only those (travel agencies list) which the current user owns? in other word, each user usually owns only one Travel agency and this field must show only that travel agency to the user.
Thanks Minesh for your quick reply, I followed your instruction till step 5, could you please explain more about:
5. in Views > Compatibility > 3rd party ShortCodes register:
Can I have problem URL and test case with your expected output.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
َAlso there is some auto CPT appears after each Tour registration, it's named:
CRED Auto Draft b6e5410c61ffe18cd29d018688ce7b39
how can I avoid such auto CPT generation?