Saltar navegación

[Resuelto] show count of child posts

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 4 años, 4 meses. 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)

Etiquetado: 

Este tema contiene 16 respuestas, tiene 2 mensajes.

Última actualización por antonK-2 hace 4 años, 3 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#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!