• Is it possible to exclude specific tags rather than specific post ids? I don’t see anything in documentation on how to set this up.

    I’d like to exclude some categories or tag id’s across the board

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi there,

    check the terms you want to exclude from your tags/cateories.
    Then go to the More Settings tab and set the Tax Operator to NOT IN.

    Thread Starter sn2006gy

    (@sn2006gy)

    So if i want to limit to a category but exclude a tag, i could use the category in the shortcode but set a not in for tags?

    or would it be quicker to have a category and a tag? such as featured so that only featured posts show up on homepage?

    The simplest option would be to use a unique tag such as Featured on your post list. The nice part of that is you only have one taxonomy term to manage, and its a lot easier to add/remove posts from that term – then it would be to update lists and shortcodes to exclude stuff.

    Thread Starter sn2006gy

    (@sn2006gy)

    I can’t seem to figure out how to get this to work. I am trying to implement a category and i only want items tagged as featured to be in that category. (easier to filter like you said)

    For example, if i have the category set and post type to post in wp show posts, how do i add a filter of “AND” for the tag featured?

    I even tried creating a featured category and doing “travel” and “featured” by having both checked in category and the AND set but it says nothing found.

    is there a way to do the and/filter/category and tag through the shortcode?

    Try the shortcut that Tom provides here – it will allow you to set a Category and Tag,

    https://wpshowposts.com/support/topic/possible-to-filter-by-a-category-and-a-tag/#post-14933

    Thread Starter sn2006gy

    (@sn2006gy)

    That looks exactly like what i’m trying to do – have a category and only show items with a tag as featured in that category.

    However, I can’t figure out why its not working

    I have

    settings=”category_and=yourcategoryname&tag__in=yourtagname” and i’ve tried removing the filters and setting them to in, and in the meta area but it still shows everything in the category… in fact, it showed featured items not in the category so i’m trying to figure this out…

    thanks for thelp

    Make sure your list doesn’t have any taxonomies set or any other modifications in the more settings – so the standard shortcode just outputs the latest posts.

    Then in the shortcode Tom provide make sure that:

    yourcategoryname and yourtagname are both updated and match your terms.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Exclude tags’ is closed to new replies.