Created
September 22, 2015 17:47
-
-
Save rmorse/49a9ce93b93d18aa1dd9 to your computer and use it in GitHub Desktop.
Search & Filter Pro - Active Query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//grab the active query from our search form | |
//replace `1526` with the ID of your search form | |
global $searchandfilter; | |
$sf_current_query = $searchandfilter->get(1526)->current_query(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, how can I use this piece of code? Should i add it in the functions.php file ?
What kind of results does this output ? Thank you!