- This topic has 16 replies, 2 voices, and was last updated 9 years, 7 months ago by .
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › displaying search terms without labels
Tagged: Accessing the Search Data, search terms
got it! here is the solution.
<?php
global $wp_query;
$sf_current_query = $wp_query->query_vars['_sft_position']; ?>
<?php if (isset ($sf_current_query)) : ?>
<?php
echo '<span class="results-term">' . $sf_current_query . '</span>';
?>
<?php endif; ?>
the vars can be changed to any search term you have.