Okay
  Public Ticket #1205385
Tour tags in search
Closed

Comments

  • Nazar started the conversation

    Hello,

    Is there any way to enable searching by tour tags?

    The problem is that a tour can be assigned to only one type (because of repeating setting in types I guess). But we need the search to be more flexible than that.

    So is it possible to replace types with tags in search? Or add another taxonomy like 'Tour Categories' that doesn't have a 1:1 (1 tour - 1 type) limitation and use that?

    Thanks.

  •  2,057
    Theme replied

    Hi,

    Tour tags (and other post types tags) will soon be added to our search widget in an upgrade. We are currently working on a major upgrade of our theme. 

    Best regards,

    themeenergy support

  • Nazar replied

    Hello,

    Thanks, that's great. Do you have any ETA? I mean, is it days, weeks or months when the major update is released?

  •  2,057
    Theme replied

    Unfortunately due to past experiences it is against our policy to release any ETAs. We can only assure you were are hard at work on this major upgrade. As soon as it's done, it will be released.

    Best regards,

    themeenergy support

  •   Nazar replied privately
  •  2,057
    Theme replied

    Hi Nazar,

    In custom-search-results.php on line 106 you will find:

    $results = $bookyourtravel_tour_helper->list_tours($paged, $posts_per_page, $sort_by, $sort_order, $location_id,$request_tour_types, array(), $search_args);
    

    Please change it to:

    $request_tour_tags = BookYourTravel_Theme_Utils::retrieve_array_of_values_from_query_string('tour_tags', true);
    $results = $bookyourtravel_tour_helper->list_tours($paged, $posts_per_page, $sort_by, $sort_order, $location_id,$request_tour_types, $request_tour_tags, $search_args);

    That should do the trick.

    Best regards,

    themeenergy support

  • Nazar replied

    Wow, I can't believe I missed that :) It works perfectly now.

    Thanks a lot! I'll wrap up the project and will prepare some info for you about qTranslate-X.

  •  2,057
    Theme replied

    Awesome, thanks very much!

    Best regards,

    themeenergy support