Skip to content

Instantly share code, notes, and snippets.

@rmorse
Created September 22, 2015 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmorse/49a9ce93b93d18aa1dd9 to your computer and use it in GitHub Desktop.
Save rmorse/49a9ce93b93d18aa1dd9 to your computer and use it in GitHub Desktop.
Search & Filter Pro - Active Query
<?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();
?>
@frg004
Copy link

frg004 commented Jun 29, 2016

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment