I've posted about this in the past but never really got a working solution and I moved on to different things so as not to get stuck. Now it's time to address it so I am bringing it up again.
What I have as a setup:
Travel Tip Listings (Parent)
|——————————————– Travel Tip Reviews (child)
Both of these have a Custom Taxonomy 'travel-tips-category'
Within the Parent I have posts such as:
Beaches
Places to go
Things To Do
I have taxonomies with exactly the same names.
I have one cred form to submit reviews for ALL the parents.
How it works on the front end:
Customer goes on the parent page – for example Beaches
Customer wants to write a review about beaches
Customer clicks Cred Form. Parent Selector is correctly tagged to beaches, but client is then forced to find the category too (beaches).
The Problem:
The problem is that it is not feasable for someone to look for the category (there are around 50) when they should already be automatically tagged as the category of the parent post.
Could the solution be the following?
I have tried the cred_save_data but this does not work for me since I only have one form (id16740) for the entire CPT's in Travel Tips. The examples I found, including previous suggestions made to me suggest to use it on a per form basis. Is there a hook I can use which works with the following logic:
If CPT Parent = Beaches
Then Pre-Select Custom Taxonomy = Beaches
It is important that the custom taxonomy is pre-selected for the user (then I can hide the div) rather than forcing the user to select anything which in my case simply does not make sense.
Thanks