[Support request] Search filter

Home Forums Support [Support request] Search filter

Home Forums Support Search filter

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1868034
    Joe

    Hello,

    I have installed the following search filter on an overview page for hotel operations (https://rockt.joewp.com/betriebe/). The code is as follows:

    add_shortcode (‘search’, ‘tu_search_shortcode’);
    function tu_search_shortcode () {
    ob_start ();
    get_search_form ();
    $ ret = ob_get_contents ();
    ob_end_clean ();
    return $ ret;
    }

    this will filter individual pages.

    I want to limit the filtering to results from the slug /veranstalter/. Is that possible and can the above code be adapted accordingly?

    The search results e.g. for the search for “Hotel Schweizerhof” should look like this: https://rockt.joewp.com/veranstalter/hotel-schweizerhof-bern/ you can see this when you click on the first picture link.

    I am thankful for any help.

    Best regards
    Joe / JoeWP.com

    #1868639
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    That basically gives you a shortcode that outputs a search form.

    Are you wanting that search form to only search something specific? What is /veranstalter/, exactly? A category? Where will this search form display?

    #1874985
    Joe

    Hi Tom,

    the search form should be integrated on the following page: https://rockt.joewp.com/betriebe/. Approx. 400 companies are set up there and scrolling would be very cumbersome without a search filter.

    The search form should look for the specific page of the hotel business. These pages look like this: https://rockt.joewp.com/veranstalter/hotel-schweizerhof-bern/. You can see this when you click on the first picture on the page https://rockt.joewp.com/betriebe/.

    So if the user searches for “Schweizerhof Bern”, the exact page should be displayed: https://rockt.joewp.com/veranstalter/hotel-schweizerhof-bern/. This page is an overview page generated from the “The Events Calendar” plugin and we integrate it in the individual containers on the Companies page: https://rockt.joewp.com/betriebe/.

    I can gladly give you access to the dashboard if that helps.

    best regards
    Joe

    #1881846
    Joe

    Hi Tom,

    do you have no idea for a solution?

    Joe

    #1882045
    David
    Staff
    Customer Support

    Hi there,

    sorry for the delay in responding, your previous reply slipped through our system.

    I am not that familiar with Tribe Events, but a quick couple of searches show there is a Venues single post type:

    https://theeventscalendar.com/knowledgebase/k/venue-and-organizer-pages/

    I would assume if theres a single post type then there should/could be an archive page for them. That would make displaying and filtering the list a much simpler process. Have you checked with Tribe to see if this is an option ?

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.