Skip Navigation

[Resolved] Display sum of [wpv-found-count] child post

This support ticket is created 5 years, 5 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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 5 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1124664

Hello i have:
parent post type: "contatto"
child post type: "corso"

I set a view for "contatto" posts and a nested sub view for "corso" posts.
I can use [wpv-found-count] in my parent "contatto" view to display number of "contatto" found.
I can also use [wpv-found-count] in my child "corso" view to display number of "corso" found (for each "contatto")

Until now everything working good.

I would to display sum of total "corso" posts found in my parent "contatto" views.

I hope it is clear.

Thanks

#1125114

Hello,

There isn't such a built-in feature within [wpv-found-count] shortcode, it can only display the post counts of current post view, it can not count posts of multiple child views.

In your case it needs custom codes, for example, this thread:
https://toolset.com/forums/topic/nested-view-with-conditional-sums/

For your reference.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.