Skip Navigation

[Resolved] Count the number of search results returned

This thread is resolved. Here is a description of the problem and solution.

Problem:
How to display total count of results returned

Solution:
You can use view's shortcode [wpv-found-count] to display the total number of results found by view's query.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/count-the-number-of-search-results-returned/#post-915160

Relevant Documentation:
=> https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-found-count

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by larryB-3 6 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#915020

Tell us what you are trying to do? I would like to have text display under the Views search filters that show the number of results returned. Example "258 results returned." even though I'm only showing 25 results per page using pagination.

#915160

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - you can use view's shortcode [wpv-found-count] to display the total number of results found by view's query.

For example:

[wpv-found-count] results returned.

More info:
=> https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-found-count

#915240
Screen Shot 2018-06-19 at 8.58.56 AM.jpg

Thanks, I am now able to show the count, but of course that leads to another question/issue.

When using pagination, after searching it still shows all the pages that are available for results that occurred before searching.

See screen shot.

#915244

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

well - you can resolve this ticket as this will help other users searching on the forum and help us to write resolve ticket summaries.

We will continue with your issue with following new ticket:
=> https://toolset.com/forums/topic/split-count-the-number-of-search-results-returned-pagination-showing-wrong-numbers/

#915255

Thanks for the help!