Skip Navigation

[Resolved] how can i add two or more cities to a itinerary?

This thread is resolved. Here is a description of the problem and solution.

Problem:

How can i add two or more cities to a itinerary?

Solution:

You can try these:

https://toolset.com/forums/topic/how-can-i-add-two-or-more-cities-to-a-itinerary/#post-1733841

Relevant Documentation:

This support ticket is created 4 years, 3 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Author
Posts
#1731997

Hi, how can i add two or more cities to a itinerary?
there is a similar example that you can see here:
hidden link
section Virtual guide (resource tab) + ADD TO YOUR TRAVEL GUIDE

So every customer can decide his itinerary.
Best regards

#1732771

Hello,

How do you setup "cities" and "itinerary"?
In my opinion, you can try these:
1) Create a custom post type "itinerary",
https://toolset.com/course-lesson/creating-a-custom-post-type/
2) Create a custom taxonomy "cities", and register it to above post type "itinerary"
https://toolset.com/course-lesson/creating-a-custom-taxonomy/

So when you edit a "itinerary" post, you will can assign multiple "cities" term to this "itinerary" post

#1733559

Hi, I need that the customer can decide to add the location in the itinerary when he read the article about that location like the link that I sent you
Please have look to the link:
hidden link
best regards
Leonardo

#1733841

I am not sure how do you setup the "cities" and "itinerary", are they custom post types?
Each customer can have multiple "itinerary" posts?
Each "itinerary" post

If they are, you can try these:
1) Setup many-to-many relationship between post types "cities" and "itinerary"
2) In single "cities" post, display relationship form, and connect current "cities" post with user's "itinerary" post
https://toolset.com/documentation/post-relationships/how-to-build-front-end-forms-for-connecting-posts/
3) And in single "itinerary" post, you can display related "cities" posts by follow our document:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-many-related-items

#1733939

Hi,
thanks for your quick replay.
Is it possible to add the cities via click and not via form?
Please have look to the link:
hidden link
section Virtual guide (resource tab) + ADD TO YOUR TRAVEL GUIDE

regards
Leonardo

#1733941
Add-to-your-travel-guide.JPG

No, there isn't such kind of built-in feature within Toolset plugins, I have already checked the URL you mentioned above:
hidden link
That website is using custom JS codes to submit data, see my screenshot: Add-to-your-travel-guide.JPG

Within Toolset sider, in order to store data into your database from WP front-end, you will need to use Toolset Forms plugin to setup post forms to create/edit custom posts, and setup relationship form to connect many-to-many relationship posts.

#1734025

My issue is resolved now. Thank you!

#1738047

Hi, is it possible to collegate the different locations on the itinerary like this
hidden link

best regards
Leonardo