May 8, 2018 at 6:04 pm #6343
I need to display trips on a page as per trip type.
I am using [WP_TRAVEL_ITINERARIES type=MyTripType ]
When i tested it a couple of days back it seemed to be working (atleast thats what I remember it to) but while trying the same page today it seems to be displaying all trips, irrespective of trip type.
I had updated the plugin today.
Is this the behavior after the update?
ThanksMay 9, 2018 at 6:47 am #6348
If you want to display the trips according to the trip type using shortcode then you have to use shortcode given below:
[WP_TRAVEL_ITINERARIES type=itinerary_types id=14 ]
In the shortcode you have to either use id or slug of the trip type which you have created from Admin Panel > Trips > Trips Type.
If you want to use the slug then add the shortcode like given below:
[WP_TRAVEL_ITINERARIES type=itinerary_types slug="MyTripType" ]
To know more about the shortcode please refer to below given link.
Hope this helps.
Best Regards!!May 9, 2018 at 6:55 am #6349
Thats works fine!!
Thanks 🙂May 9, 2018 at 7:54 am #6351
Glad we could help you.
If you have any issues further please let us know.
We would also really appreciate if you could help us by rating our plugin by following the link given below:
Best Regards!!May 12, 2018 at 6:01 am #6515
Is there a way to do the shortcode to include trip type AND location?May 12, 2018 at 6:07 am #6516
I am trying something like [WP_TRAVEL_ITINERARIES type=itinerary_types slug="MyTripType" location="MyLocation"]
Its lists all trips of that type and all trips for the location. It does not perform an AND operation.
I even tried adding an “AND” between slug and location but apparently, it is not the way to do it.May 14, 2018 at 6:25 am #6523
To make the trip display of particular trip type and location using the shortcode you have to use below given shortcode:
[WP_TRAVEL_ITINERARIES type=itinerary_types slug="MyTripType" type=travel_locations slug="MyLocation"]
Here you have to pass two parameter i.e. for trip type and location. Also, it does not accept “AND” or Location parameter as you have mentioned.
Additionally, you can either use slug or the id of the trips types and locations.
Hope this helps.
Let us know if you have any confusion further.
Best Regards!!May 14, 2018 at 7:04 am #6526
Thanks for explaining how to pass parameters.
Have tried the above but it still gives a wrong output.
My locations are states with the country as parents. I am passing a trip type and location as country. The AND operation should give 7 trips which it is displaying but it also shows 2 trips from the location (country) but not matching trip type.
Please advice.May 14, 2018 at 9:29 am #6533
Screenshots of the above example showing short code and the wrong trip type sneaking in
https://imgur.com/a/2P8PDitMay 15, 2018 at 4:17 am #6545May 16, 2018 at 8:09 am #6588
You must be logged in to reply to this topic.