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!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login