If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Tagged: Search result
where is avia_which_archive() ?
I would like to add the number of search results in the search-page.
How must I proceed?
In avia_which_archive(), if is search-archive, I must insert this
<?php echo '<p>Found ' . $wp_query->found_posts . ' hits.</p>'; ?>
<?php global $wp_query; echo '<p>Found ' . $wp_query->found_posts . ' hits.</p>'; ?>
or other similar code (i.e. without $wp_query).
The topic ‘Showing the number of search results’ is closed to new replies.