Get WPFTS Pro today with 25% discount!

number of results for a WPFTS Pro search


  • We have WPFTS Pro installed on our site, and I continue to be impressed by how fast and comprehensive it is for searches.

    I've been working on configuring the plugin, and I'd like to be able to have WPFTS display the total number of results returned for a given search. (in addition/as opposed to the score).

    Thanks in advance for any recommendations/suggestions you can offer.


  • Do you mean a number of the relevant words for each search result item or a total of posts found?

    If you need only the number of found posts, you can use WP_Query's property found_posts.

    $wp_query->found_posts;
    

    I didn't test this, but it should work.


  • Thank you, works like a charm. Much appreciated!

Suggested Topics

Be the first to read the news!

We are always improving our products, adding new functions and fixes. Subscribe now to be the first to get the updates and stay informed about our sales! We are not spammy. Seriously.

Join Us Now!

We are a professional IT-team. Many of us have been working in a Web IT field for more than 10 years. Our advanced experience of software development has been employed in the creation of the WordPress FullText Search plugin. All solutions implemented into the plugin have been used for 5 or more years in over 60 different web-projects.

We are looking forward to your comments, requests and suggestions in relation to the current plugin and future updates.

ewm-logo-450

The forum powered by NodeBB | Contributors