• Resolved mattias5378

    (@mattias5378)


    Hi,

    I have afew trips added, with different durations. I have several issues with the search.

    1. When loading the page all trips show, but when adding any filter such as country or duration, only some trips show. Trips that match the criteria does not show.
    2. duration is limited to max 13 days, even tho I got trips that’s 21 days.

    Hope you got some input if it’s something I did wrong when adding the trips, but I can’t see any pattern.

    if I could see the sql query’s from the advanced search it would be easier I guess.

    url1: https://places.mindtravel.se/alla-resor/

    url2: https://places.mindtravel.se/sok-resa/

    Thanks in advance!

    Best regards, Mattias

    • This topic was modified 3 years, 1 month ago by mattias5378.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter mattias5378

    (@mattias5378)

    Just to clarify. I got issues with both the search form on the start page and the trip listing.

    Thread Starter mattias5378

    (@mattias5378)

    After a nights sleep I had new energy and problem solving skills and found a pattern in the database. Only the trips that have the postmeta key ‘_s_duration’ set will show in the 2 above functions. That means that the search engine for trip is based on this value. Why many of my trips don’t have it, I don’t know.

    Mind shred some light on how this postmeta key is being set and why the engine done use ‘wp_travel_engine_setting_trip_duration’? This value is set on all my trips.

    Thread Starter mattias5378

    (@mattias5378)

    Thread Starter mattias5378

    (@mattias5378)

    I found the issue. If you don’t hit save on the trip when edit and just hit update the _s_duration won’t be set.

    Plugin Support WP Travel Engine Support

    (@wptravelenginesupport)

    Hello @mattias5378,

    We are glad to hear that you were able to find a solution on your own.

    If you have any queries or confusion later, please let me know and I will be back.

    Thank you!

    Thread Starter mattias5378

    (@mattias5378)

    Thanks for the reply.

    Is there any way to have trip types as a search criteria on the start page search bar?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Problem with trip search’ is closed to new replies.