Skip Navigation

[Gelöst] How to show post numbers next to Views filter controls

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem: With a View that has filter controls, how to show the number of matching posts against each filter?

Solution: Edit the shortcode where the filter is inserted and use the %%COUNT%% placeholder in the format attribute.

Relevant Documentation:

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.

This topic contains 5 Antworten, has 2 Stimmen.

Last updated by Ljuba vor 3 Jahre, 5 Monate.

Assigned support staff: Nigel.


==> Tell us what you are trying to do?

I have custom search and I have set it [wpv-found-count] per title (see image 01), but I want it to display also per search items (as it is on image 02 and 03).

So, if one item filter looks like code below, what should to be added to get [wpv-found-count] as on the images?

<div class="form-group">
	<label>[wpml-string context="wpv-views"]Room amenities[/wpml-string]</label>
	[wpv-control-post-taxonomy taxonomy="room-amenities" type="checkboxes" url_param="wpv-room-amenities"]


Languages: Englisch (English ) Spanisch (Español )

Timezone: Europe/London (GMT+00:00)

This one is just not supported. Funnily enough I have another ticket in my queue discussing the same thing, although it is not something I've seen requested before.

In any case all I can do is pass this on to my colleague who manages features requests. If there is an existing request he will add your voices to it, otherwise he'll file a new request.

Although this would be a nice-to-have, it does add a certain amount of overhead to the page in terms of the queries required to provide it.


Thanks for clear answer. Yes, I agree also vs queries, but feture is nice also. Thanks again.



Languages: Englisch (English ) Spanisch (Español )

Timezone: Europe/London (GMT+00:00)

Screen Shot 2018-08-21 at 14.46.54.png


My colleague replied back that you can already do this. It rang a bell but when I checked I couldn't see how and yet looking again it's right in front of my eyes.

Note the format option when inserting a filter, you can use the %%COUNT%% placeholder.




I can just to repeat. You ARE THE KING. Thanks A LOT.