Title: complex exclude
Last modified: August 20, 2016

---

# complex exclude

 *  [AnimaliX](https://wordpress.org/support/users/animalix/)
 * (@animalix)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/excludator/)
 * Hi, I am a newbie and have this problem:
    need exclude specific posts only with
   specific tags from specific cathegory … plugins like Simply Exclude is not specific
   enough 🙂
 * for example: i have in cathegory “PRESS” some posts with tag “ABC” and i need
   this posts exclude (Do not show) in “PRESS” cathegory
 * ps. sorry for my english 😛

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/excludator/#post-2202032)
 * [http://codex.wordpress.org/Function_Reference/query_posts](http://codex.wordpress.org/Function_Reference/query_posts)
   
   [http://codex.wordpress.org/Function_Reference/WP_Query](http://codex.wordpress.org/Function_Reference/WP_Query)
 *  Thread Starter [AnimaliX](https://wordpress.org/support/users/animalix/)
 * (@animalix)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/excludator/#post-2202040)
 * i experimenting with this
 *     ```
       <?php
       $skip = false;
       $skip_tag = 'demo';
       $tags = get_the_tags($post->ID);
       if ($tags) {
         foreach ($tags as $tag) {
           if ($tag->name == $skip_tag) {
             $skip = true;
           }
         }
         if (!$skip) {
           //your post display stuff goes here -- like the_title, the_content, the_excerpt
         }
       }
       ?>
       ```
   
 * from [http://wordpress.org/support/topic/how-to-hide-post-by-tag?replies=2](http://wordpress.org/support/topic/how-to-hide-post-by-tag?replies=2)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘complex exclude’ is closed to new replies.

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [exclude](https://wordpress.org/support/topic-tag/exclude/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [specific](https://wordpress.org/support/topic-tag/specific/)
 * [tag](https://wordpress.org/support/topic-tag/tag/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [AnimaliX](https://wordpress.org/support/users/animalix/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/excludator/#post-2202040)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
