Skip Navigation

[Resolved] [wpv-items-count] not working with filters

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 1 reply, has 2 voices.

Last updated by Christopher Amirian 1 year ago.

Assisted by: Christopher Amirian.

Author
Posts
#2663659

Hello,

I have the below in a view but the number doesn't change when the search filters are changed:
Results: [wpv-items-count] products of [wpv-found-count]

Thanks!

#2663765

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

Please consider that the shortcode only shows whatever is in the main pagination and not the whole result if the results of the website have pagination.

Description from https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-153270 :

Outputs the number of posts, users or taxonomies that will be displayed on the page. When using pagination, this value will be limited by the page size and the number of remaining results.

(Compare with [wpv-found-count] – this will output the total number of post returned by the Views query)

That might be the problem that you do not see any change on the number itself. Also please make sure that you add the shortcode in the correct place inside the view itself, try to change the place of it outside the container or inside it and see if it has any differecne/

Thanks.

#2663843

Hi Christopher,

Thank you for the instructions.

Yes, actually I have both shortcodes on the page:
Results: [wpv-items-count] products of [wpv-found-count]

The code was in the wrong place, it was in the "View search" I've moved it to the "View output"

Working perfectly now 🙂