We're merging with GenerateBlocks! Learn more here.

[Resolved] exclude a tag from a list

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support exclude a tag from a list

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #36422
    Louis-Xavier
    Participant

    Hi,

    I’m struggling to exclude a tag from a list I display on my front page. My understanding is that I can set additional parameters using the shortcode.

    Here’s what I’m doing that doesn’t work, meaning that the list still displays posts, but is not processing the exclusion:

    [wp_show_posts id=”80033″ settings=”tag__not_in=12561″]

    Should I use the slug instead? I must miss something… Please help whenever you can!

    #36427
    elvin
    Moderator

    Hi there,

    You can do it like this:

    [wp_show_posts id="18" settings="taxonomy=post_tag&tax_term=test-tag-1&tax_operator=NOT IN"]

    Use tag slug on tax_term=

    #36431
    Louis-Xavier
    Participant

    Yes, that’s it! Was there a list somewhere? Anyway, I think I’ll be able to manage from here.

    #36444
    elvin
    Moderator

    There’s no complete documentation for this, unfortunately.

    There will likely be one when GenerateBlocks gets merged with WP Show Posts and it’ll likely be posted as part of GB’s documentation.

    For now, you can ask us here for any specific parameters or you can search around the forums for shortcode usages. 🙂

    #36535
    Louis-Xavier
    Participant

    Thanks!

    #36541
    elvin
    Moderator

    No problem. Let us know if you need further help. 😀

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