Passer la navigation

[Résolu] show count of child posts

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 4 years, 7 months. 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 -

Fuseau horaire du supporter : Asia/Hong_Kong (GMT+08:00)

Marqué : 

Ce sujet contient 16 réponses, a 2 voix.

Dernière mise à jour par antonK-2 Il y a 4 years, 7 months.

Assisté par: Luo Yang.

Auteur
Publications
#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!