Forums › Forums › Search & Filter Pro › Search & Filter and Beaver Builder Search Template
Tagged: beaver themer
- This topic has 5 replies, 2 voices, and was last updated 6 years, 3 months ago by Anonymous.
Viewing 6 posts - 1 through 6 (of 6 total)
-
Anonymous(Private) August 15, 2018 at 3:10 pm #185679
Hello,
I’ve created a Search Template in Beaver Themer. This works great when I use Search & Filter Free. However, in Search & Filter Pro I am not able to select it. Instead, I can only select the Single Archive Template. Can you please help me select the Search Template?
The Search template is an Archive that is displayed only for search results.
Thank you very much!
Trevor(Private) August 17, 2018 at 11:01 am #185844Hi Rose. I think this code will do as you want, but note that you need to change the ID of the form used. Also note that the Post Snippet plugin does not require the use of
<?php
and?>
.global $searchandfilter; $sf_current_query = $searchandfilter->get(1234)->current_query(); if ($sf_current_query->get_search_term()=="") { echo '<h2>No Search Term</h2>'; } else { echo '<h2>Results for: ' . $sf_current_query->get_search_term() . '</h2>'; }
i hope that works. Modify the HTML and messages to suit.
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)