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.

Excluded tags

  • #8612
    Avatar photo[anonymous]

    I have 3 colums: all post, post for tags x-xx, post for tags y-yy

    First column

    {{#each posts}}
    {{title}}
    {{/each}}

    Secont column tags – 120,26

    {{#getPostsByTags "count=10&tag_as=id&tags=120,24"}}		
    {{ title }}
    {{/getPostsByTags}}

    Third column tags 34,21 excluded 120,26 (it works)

    {{#getPostsByTags "count=10&tag_as=id&tags=34,21&excluded=120,24&offset=2&orderby=modifiedAt&ordering=asc"}}
    {{ title }}
    {{/getPostsByTags}}

    How can I exclude from all posts, posts with tags 34,21,120,26 ?

    {{#getPostsByTags "count=10&tag_as=id&excluded=120,99,98,66,30,24"}}
    {{ title }}
    {{/getPostsByTags}}

    or

    {{#getPostsByTags "count=10&tag_as=id&tags=1-66&excluded=120,99,98,66,30,24"}}
    {{ title }}
    {{/getPostsByTags}}

    or

    {{#getPostsByTags "count=10&tag_as=id&excluded=120,99,98,66,30,24"}}
    {{ title }}
    {{/getPostsByTags}}

    ….

    I’m out of ideas.

    #8629
    Avatar photoBob
    [anonymous] wrote:

    How can I exclude from all posts, posts with tags 34,21,120,26 ?

    The excluded option supports post IDs, not tag IDs. So, apply all tag IDs except 34,21,120,26.