I’m trying to display the number of posts for each tag on a Blog Collection page. e.g.
- Alpha Tag (2 posts)
- Bravo Tag (4 posts)
- Charlie Tag (3 posts)
Here is the code I tried…
{{#get "tags" limit="6"}}
{{#foreach tags }}
{{name}}
{{plural ../pagination.total empty='posts' singular='% post' plural='% posts'}}
{{/foreach}}
{{/get}}
I only get the total number of posts for the blog, not the tag. I assume the pagination helper doesn’t work in this context. Is there another way to get the post count?
Thanks!