- This topic has 4 replies, 3 voices, and was last updated 2 years, 8 months ago by David.
-
AuthorPosts
-
July 23, 2021 at 8:00 am #1868034Joe
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.comJuly 23, 2021 at 7:46 pm #1868639TomLead DeveloperLead DeveloperHi 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?July 28, 2021 at 12:31 pm #1874985JoeHi 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
JoeAugust 3, 2021 at 3:58 am #1881846JoeHi Tom,
do you have no idea for a solution?
Joe
August 3, 2021 at 6:59 am #1882045DavidStaffCustomer SupportHi 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 ?
-
AuthorPosts
- You must be logged in to reply to this topic.