Shortcode type not working after update

Homepage Forums Travel Log Shortcode type not working after update

This topic contains 10 replies, has 2 voices, and was last updated by  Support Team 1 year, 5 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #6343

    maxbuzz
    Participant

    Hi,

    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

    #6348

    Support Team
    Keymaster

    Hello @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!!

    #6349

    maxbuzz
    Participant

    Thats works fine!!
    Thanks 🙂

    #6351

    Support Team
    Keymaster

    Hello @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!!

    #6515

    maxbuzz
    Participant

    Is there a way to do the shortcode to include trip type AND location?

    #6516

    maxbuzz
    Participant

    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.

    #6523

    Support Team
    Keymaster

    Hello @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!!

    #6526

    maxbuzz
    Participant

    Hi,

    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.

    #6533

    maxbuzz
    Participant

    Screenshots of the above example showing short code and the wrong trip type sneaking in
    https://imgur.com/a/2P8PDit

    #6545

    Support Team
    Keymaster

    Hello @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

    wensolution@gmail.com

    Thank you.

    #6588

    Support Team
    Keymaster

    Hello @maxbuzz,

    We will fix the issue in coming updates and will let you know.

    Thank you.

    Best Regards!!

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.