Fetching categories (tags) to make a custom component

Hi all,

I was working with ghost and was wondering if there’s any way to get all the tags used in our ghost platform and display it in home page to make a new component like the one in the image.

Thanks in advance!

Screenshot from 2020-06-30 12-47-36

Ok i got it from the internet, :grinning: :grinning:

{{#get "tags" limit="all"}}
    <ul class="tags">
        {{#foreach tags}}
            <li>
                <a href="{{url}}">{{name}}</a>
            </li>
        {{/foreach}}
    </ul>
{{/get}}

And it works.! :slight_smile:

1 Like