Sauter la navigation

[Résolu] Test number of posts for this term

This support ticket is created Il y a 4 années et 10 mois. 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.

Ce sujet contient 1 réponse, a 1 voix.

Dernière mise à jour par romanB-3 Il y a 4 années et 10 mois.

Auteur
Publications
#1595439

Hi,
I have a main view displaying 8 cards based on posts sharing same terms of current post.
Into the returned content I have another view that gets the list of other terms of each post's card.
Finally, the list of terms may be hovered to display the number of posts available for this term.
The number of posts may be singular or plural.
So I added a conditional in order to output different texts.
I tried to base the conditional on [wpv-post-count] shortcode, but it returns the number of posts to display in the list of posts, and not the total number of posts available for the term.
I also tried to base the conditional on [wpv-items-count] and [wpv-found-count] shortcodes, but both return the number of different terms for the current post's card, and not the total number of posts available for the term...
Please see the "Autres articles qui pourraient vous intéresser" (related posts) section here: lien caché
Thank you.

#1595453
[wpv-taxonomy-post-count]

was the solution 🙂
My issue is resolved now. Thank you!