- This topic has 10 replies, 2 voices, and was last updated 5 years ago by
Support Team.
- AuthorPosts
- May 8, 2018 at 6:04 pm #6343
maxbuzz
ParticipantHi,
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?Thanks
May 9, 2018 at 6:47 am #6348Support Team
KeymasterHello @maxbuzz
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.
http://wptravel.io/documentations/user-documentation/shortcode/plugin-shortcode/
Hope this helps.
Best Regards!!
May 9, 2018 at 6:55 am #6349maxbuzz
ParticipantThats works fine!!
Thanks 🙂May 9, 2018 at 7:54 am #6351Support Team
KeymasterHello @maxbuzz,
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:
https://wordpress.org/support/plugin/wp-travel/reviews/
Thank you.
Best Regards!!
May 12, 2018 at 6:01 am #6515maxbuzz
ParticipantIs there a way to do the shortcode to include trip type AND location?
May 12, 2018 at 6:07 am #6516maxbuzz
ParticipantI 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 #6523Support Team
KeymasterHello @maxbuzz,
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.
Thank you.
Best Regards!!
May 14, 2018 at 7:04 am #6526maxbuzz
ParticipantHi,
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 #6533maxbuzz
ParticipantScreenshots 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 #6545Support Team
KeymasterHello @maxbuzz,
Since the shortcode is working fine when we locally checked the plugin so please send us your login detail so that we can inspect further and help you.
Email
Thank you.
May 16, 2018 at 8:09 am #6588Support Team
KeymasterHello @maxbuzz,
We will fix the issue in coming updates and will let you know.
Thank you.
Best Regards!!
- AuthorPosts
- The forum ‘Travel Log’ is closed to new topics and replies.