Hello!
I am trying to get all the tags for my ghost.org site, loop through them and then show the 3 most recent posts.
I have read about problems with nested get helpers, but cannot see any way around not using them.
The best example I can give is; https://ease.ghost.io , Underneath “Featured articles”
Here is my code;
{{#get 'tags' limit='all' include="count.posts" order="count.posts desc" as |alltags|}}
{{#foreach tags}}
<a href='{{ url }}'>{{ name }}</a>
<p>{{description}}</p>
{{#get "posts" limit="3" filter="tag:{{tags.slug}}" include="tags,authors"}}
<ul>
{{#foreach posts}}
<li>{{ title }}</li>
{{/foreach}}
</ul>
{{/get}}
{{/foreach}}
{{/get}}
Thanks, have a great day!