Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Search & Filter Pro - Active Query - Get the search term
//Get the search term
//replace `1526` with the ID of your search form
global $searchandfilter;
$sf_current_query = $searchandfilter->get(1526)->current_query();
echo $sf_current_query->get_search_term();

This comment has been minimized.

Copy link

yoske25 commented May 7, 2019

Hey. How can I use this to generate Custom Made page title based on this query?
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.