Skip Navigation

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

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

Problem:

The issue here is that the user wanted to add the found counter in the search button of their views parametric search.

Solution:

This can be done by following the format below.

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

It should also be noted that this only works if the view is inserted onto the page as whole and not separately. Meaning the Search bar isn't separated from the result.

This support ticket is created 5 years, 8 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 9 replies, has 3 voices.

Last updated by KonstantinS88 5 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#1238284
now wt i've done.png

I want to show the result count in the search form instead of the result layout which i am able to do. having searched around the forum, I know that this is technically feasible and supported by toolset. What I want to show is when user click search button, the results shown and "We have found 40 results" text will be updated to the search form, NOT below the search form.

I have also try this https://toolset.com/forums/topic/show-wpv-found-count-in-the-search-button/ but still doesnt work.

looking forward to your help, thank you so much.

#1238310

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Chong,

Thank you for contacting our support forum.

Simply adding your search button like this should give the desired results.
[wpv-filter-submit name="submit ([wpv-found-count])" output="bootstrap"]

Thanks,
Shane

#1238421
code.png
result.png

HI Shane,

Thank you for your help.
However, it doesn't work I have copy the code you provided and the result is the same.

Moreover, I would need the text "Showing 4 result found" to be appeared in the search form. please help! thank you again

#1238682

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Chong,

The shortcode should render.

Would you mind allowing me to have access to the site so that I can check on the view for you ?

Thanks,
Shane

#1238786

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Chong,

Could you let me know the page where the search is on ?

Thanks,
Shane

#1238893

toolset view -> ID536 name: Business Archive View

thanks

#1238999

hey shane
sorry that I have change the site domain to hidden link
other credentials remain unchanged, thanks!

#1239132

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Chong,

It actually works but not in the case where you've separated the filter from the results.
hidden link

Since the wpv-found-count shortcode is counting the results on the page.

So you would need the results and search bar attached as one view.

Thanks,
Shane

#1239200

oh thats why! thank you so much for your help shane!

#1651489

But what if I want filter and results to be separate? My filter options update, so I also want the results count to be updated in the button and still would like to have the option to show the detailed search on a separate page (target_id='xx').