Skip Navigation

[Résolu] Count the number of search results returned

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 6 années et 5 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par larryB-3 Il y a 6 années et 5 mois.

Assisté par: Minesh.

Auteur
Publications
#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

Les langues: Anglais (English )

Fuseau horaire: 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.

Les nouveaux fils créés par Minesh et associés à celui-ci sont repris ci-dessous :

https://toolset.com/fr/forums/topic/split-count-the-number-of-search-results-returned-pagination-showing-wrong-numbers/

#915244

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: 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!