Created
September 22, 2015 17:50
-
-
Save rmorse/f7e7473ea2ed65c1cf0d to your computer and use it in GitHub Desktop.
Search & Filter Pro - Active Query - Get a single field
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 | |
//Get a single fields values using labels | |
//replace `1526` with the ID of your search form | |
global $searchandfilter; | |
$sf_current_query = $searchandfilter->get(1526)->current_query(); | |
echo $sf_current_query->get_field_string("_sft_category"); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment