I have a post type called Tours. Here I add travel guides on locations or attractions.
Now I want to allow users to write Experiences, which are basically a review form about specific locations or attractions.
They should be able to fill in the form in 2 options:
1. From a button/menu: In that case, they'll have an empty form, they'll write the location details and fill in the other details.
2. Click on a button from within a Tour - in that case, I want the form to be related to that specific Tour.
Please advise what would be the best way to do that. Should I set a new form type for Experiences (reviews)? How to set the relationships? How to make the two options work?
I hope I was able to clearly explain what I need. If you need more details please let me know.
Hello. Thank you for contacting the Toolset support.
Have you created Experiences (reviews) post type? If yes, if you mean that one location can have multiple reviews added by any users then you can create one to many post relationship between post type Location (One) to Experiences (Many).
Then, you can create post form for Experiences (reviews) post type that will allow you to submit the experience. I believe you want to add the r Experiences (reviews) form on single location post - right?
Hi,
Haven't created the Experiences post type yet (waiting for your response so I can make the best structure).
Yes, One Tour to Many Experiences is the relationship.
I'm just not sure, if a user fills in the Experiences post form, how can I decide if it's related to a specific Tour?
In some cases I want users to fill out this form for Tours that aren't available yet. The idea is that they can recommend new places and not just comment on places I wrote about.
I will need to understand what post types you have?
- Tours
- Locations
- Experiences (that is needs to be created)
Is this right?
If you want to attach Experiences with Tours then you should also create One to Many post relationship between Tours and Locations as well.
I would also suggest you should run a test on the test site I shared with you with the previous ticket, I'm sharing that again:
=> hidden link
And create your required post types and run a test and see what is the best structure as per your requirement, if you have any questions, you are welcome to raise here 🙂