- This topic has 4 replies, 2 voices, and was last updated 8 years ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
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 › Display search term in results.php file
Hi – I am attempting to display the searched text term in the results.php file but cant seem to get it to appear…
I was thinking this should work:
You searched for <?php echo $sf_current_query; ?>.
Found <?php echo $query->found_posts; ?> Results<br />
Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br />
But it doesn’t fetch the search term…?
The PHP shown in this post is how you would display a text search terms:
In general, this documentation shows how how access the search query/data:
https://searchandfilter.com/documentation/accessing-search-data/