Skip Navigation

[Resolved] show count of child posts

This thread is resolved. Here is a description of the problem and solution.

Problem:

Display child post's count in a nested views.

Solution:

You can add a new view block:

- Query child posts

- Filter by:

Select posts in Any relationship that are a related to the current post in the loop.

- Outside view's loop, display the post found count shortcode, like this:

[wpv-found-count]

Relevant Documentation:

https://toolset.com/course-lesson/displaying-related-posts/#displaying-many-related-items

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

Last updated by antonK-2 3 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1905893

In your case, it is nested view, so it needs to be filter by:
... related to the current post in the loop.

More help:
https://toolset.com/course-lesson/displaying-related-posts/#displaying-many-related-items

#1908505

My issue is resolved now. Thank you a lot!