- This topic has 1 reply, 2 voices, and was last updated 6 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 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 › Number of Results
Tagged: results
You would have to edit that theme file and add the PHP yourself. In turn, that requires that you are working with a child theme (easy to setup if you are not), so you can copy the search.php file to the child theme and edit it there. You would also need to know the name of the results array for the wp_query that your theme runs. This is some typical code as an example:
Found <?php echo $query->found_posts; ?> Results<br />
Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?>
Note that this should be placed inside any Ajax container, otherwise if you do a search that uses Ajax to refresh to results, the numbers would not update.