WordPress.org

Forums

WP Search
How do I show the search result count? (1 post)

  1. James Mehorter
    Member
    Posted 2 years ago #

    Hello, thanks for such a wonderful plugin!

    Before installing the plugin I was using <?php echo $wp_query->found_posts ?> in my search.php template to display the search result count. After installing the plugin (my searches are faster and more relavant) the ->found_posts variable only contains my posts_per_page value (in this case 4). My pagination still works correctly though. How can I display the total number of search results in search.php?

    Thanks!

    http://wordpress.org/extend/plugins/wpsearch/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by James Mehorter
  • This topic is not resolved
  • WordPress version: 3.4.2