Sign in

Excluded tags

  • This topic has 1 reply, 2 voices, and was last updated 10 months, 3 weeks ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8612
    Avatar photoinfrancer

    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
    infrancer 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.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.