Skip Navigation

[Resolved] %%Count%% not correct num of posts

This support ticket is created 7 years, 1 month 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 7 years, 1 month ago.

Assisted by: Luo Yang.

Author
Posts
#577396
sum.png

I have a view with custom filter on field as a select.
First option shows all posts %%count%%
The total count is 10 posts to many.
I checked in backend, the amount of posts is incorrect.

 [wpml-string context="wpv-views"]Status:[/wpml-string]
[wpv-control field="booking-status" class="above-table" url_param="booking-status" type="select" format="%%COUNT%% | %%NAME%%" values=",wait,approve,deny,invoice,paid,cancel,move,accept,refuse" display_values="Alla,Obehandlade,Godkända,Nekade,Fakturerade,Betalda,Avbokade,Platsbyte pågår,Accepterat platsbyte,Avböjt platsbyte"]
#577553

Dear Tina,

I assume the field "booking-status" is a custom field, according to our document:
Attribute "format" of shortcode [wpv-control] only works for the taxonomy filter, it won't be able to work as expect for a custom field filter.

See our document:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-control
Attribute "format":
'%%COUNT%% %%NAME%%'
%%COUNT% will display the number of post for the taxonomy term and %%NAME%, the taxonomy term.