Skip Navigation

[Resolved] Shortcode for sums calculated for all pages

This support ticket is created 6 years, 2 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 2 replies, has 2 voices.

Last updated by culturaI 6 years, 2 months ago.

Assisted by: Waqar.

Author
Posts
#1136260

Hello i'm using [add-to-total] and [show-total] shortocodes in my view reference to this thread:
https://toolset.com/forums/topic/nested-view-with-conditional-sums/

It's working great and makes toolset a great plugin.

But, as expected if i use pagination it display only sums for current page.

There is a way to display sum of total view and not limited to current page?

Thanks

#1136741

Hi there,

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

As you noted, when used inside the paginated view (<wpv-loop> </wpv-loop>) the [add-to-total] shortcode will only process the results available on the current page and not the total number of results available.

To overcome this, you can create a new duplicate of your current view, but without pagination and only use it to generate the output for the [show-total] shortcode.

That view can then be placed inside this paginated view and it will show a total of all results.

I hope this helps.

regards,
Waqar

#1139800

My issue is resolved now. Thank you!