Skip Navigation

[Resolved] Connecting users' reviews to post type

This support ticket is created 3 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by Minesh 3 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#2318193

Hi,

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.

Thank you very much,
Nadav

#2318477

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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).

Here is the Doc how you can create post relationship:
- https://toolset.com/course-lesson/how-to-set-up-post-relationships-in-wordpress/

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?

#2318485

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.

#2318503

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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 🙂

#2318507

You are correct. I'll try it since I'm not sure yet if that will work as I expect.
I'll update you.

Thanks for now 🙂

#2319093

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You're welcome. Please let us know if your require further assistance.