Skip Navigation

[Resolved] Test number of posts for this term

This support ticket is created 4 years, 8 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.

This topic contains 1 reply, has 1 voice.

Last updated by romanB-3 4 years, 8 months ago.

Author
Posts
#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: hidden link
Thank you.

#1595453
[wpv-taxonomy-post-count]

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