Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

How to know if there are no posts using getPostsByTags?

  • #7292
    Avatar photo[anonymous]

    How to know if there are no posts associated with a tag using getPostsByTags?

    I want to place other content if there are no posts found for a specific tag so that I do not end up with an empty section.

    Cheers!!

    #7298
    Avatar photoBob

    Try to play with @index variable e.g.:

    {{#checkIf @index '==' 0}}
       <p>IT'S THE FIRST ELEMENT!</p>
    {{/checkIf}}
    #7334
    Avatar photo[anonymous]
    This reply has been marked as private.