Title: Exclude not working
Last modified: April 11, 2020

---

# Exclude not working

 *  Resolved [abetor](https://wordpress.org/support/users/abetor/)
 * (@abetor)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/exclude-not-working-8/)
 * I’m trying to exclude certain category posts, but it’s not working. In the given
   example last post have hype category that should be posted, but also has the 
   scam category that should be excluded.
    Used this code: [catlist name=hype -scam
   no_post_titles=”yes” content=”full”] if I use name=hype-scam it adds few more
   posts not containing neither hype nor scam. If I use name=-scam it shows posts
   containing scam, so i guess just minus isn’t working at all, I’ve tried both 
   minuses, normal one and grey -. tried using the gui version, it used id-s instead
   of names, but didn’t work aswell.
 * Any suggestions?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclude-not-working-8%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [zymeth25](https://wordpress.org/support/users/zymeth25/)
 * (@zymeth25)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/exclude-not-working-8/#post-13043695)
 * Several things going on here:
    - `name=hype-scam` is invalid and so is `name=hype -scam`, the documentation
      doesn’t mention it and such notation is not supported.
    - `id=1-2` is valid, however, it is currently bugged and awaiting a fix
    - Valid and working alternative is `id=1,-2`

Viewing 1 replies (of 1 total)

The topic ‘Exclude not working’ is closed to new replies.

 * ![](https://ps.w.org/list-category-posts/assets/icon-256x256.png?rev=2517221)
 * [List category posts](https://wordpress.org/plugins/list-category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/list-category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-category-posts/reviews/)

## Tags

 * [exclude](https://wordpress.org/support/topic-tag/exclude/)
 * [not working](https://wordpress.org/support/topic-tag/not-working/)

 * 1 reply
 * 2 participants
 * Last reply from: [zymeth25](https://wordpress.org/support/users/zymeth25/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/exclude-not-working-8/#post-13043695)
 * Status: resolved