Skip Navigation

[Resolved] Show [wpv-found-count] in the search Button

This support ticket is created 5 years, 11 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 5 years, 11 months ago.

Assisted by: Waqar.

Author
Posts
#1175862

Hi, i would like to show the number of results directly in the text of the button while a user choose filters. But it is not possible while the [wpv-found-count] only works in the results view

#1175998

Hi Alessandro,

Thank you for contacting us and I'll be happy to assist.

The shortcode "[wpv-found-count]" ( ref: https://toolset.com/documentation/user-guides/views-shortcodes/#vf-155378 ) can be used inside the "Search and Pagination" section, as well.

To show the count of items in the search button, you can use it like this:


[wpv-filter-submit output="bootstrap" name="Search ([wpv-found-count])"]

You can read the details about the available attributes of the "wpv-filter-submit" shortcode at:
https://toolset.com/documentation/user-guides/views-shortcodes/#vf-153263

I hope this helps and please let me know how it goes.

regards,
Waqar