Title: Exclude &#8220;uncategorized&#8221; posts
Last modified: January 31, 2024

---

# Exclude “uncategorized” posts

 *  Resolved [MattDotCom](https://wordpress.org/support/users/mattdotcom/)
 * (@mattdotcom)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/exclude-uncategorized-posts/)
 * What a wonderful plugin! Only issue I am having is that I am trying to exclude
   the “Uncategorized” category from the pool of random posts, as the content that
   falls under that is boring archive stuff.
 * Here are my current parameters that I thought was working, but does not seem 
   to be excluding properly as this post just popped up on my latest test: [https://thefoodsection.com/join-us-on-may-15-for-spirited-brunch/](https://thefoodsection.com/join-us-on-may-15-for-spirited-brunch/)
 * **[https://thefoodsection.com/?redirect_to=random&post_type=post&category__not_in=uncategorized](https://thefoodsection.com/?redirect_to=random&post_type=post&category__not_in=uncategorized)**
 * I figure I am not using that last parameter correctly – any help woulf be much
   appreciated!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexclude-uncategorized-posts%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/exclude-uncategorized-posts/#post-17400109)
 * Have you tried with a zero instead of “uncategorized”?
   [https://thefoodsection.com/?redirect_to=random&post_type=post&category__not_in=0](https://thefoodsection.com/?redirect_to=random&post_type=post&category__not_in=0)
   Sorry, I cannot see the categories of the result.
 *  Thread Starter [MattDotCom](https://wordpress.org/support/users/mattdotcom/)
 * (@mattdotcom)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/exclude-uncategorized-posts/#post-17400164)
 * AH, I will try that. Thank you!
 *  Plugin Author [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/exclude-uncategorized-posts/#post-17400645)
 * I’m not so sure now if 0 is actually the right choice. “Uncategorized” might 
   be the ID **1**. Sorry for the confusion! 😀
 *  Thread Starter [MattDotCom](https://wordpress.org/support/users/mattdotcom/)
 * (@mattdotcom)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/exclude-uncategorized-posts/#post-17400650)
 * confirmed — when i go into the Uncategorized archive the ID seems to be 1 — still
   super helpful, thank you!
 *  Plugin Author [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/exclude-uncategorized-posts/#post-17403773)
 * Thank you for confirming it, good to know for next time

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

The topic ‘Exclude “uncategorized” posts’ is closed to new replies.

 * ![](https://ps.w.org/redirect-url-to-post/assets/icon-256x256.png?rev=1742449)
 * [Random Post Plugin - Redirect URL to Post](https://wordpress.org/plugins/redirect-url-to-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirect-url-to-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirect-url-to-post/)
 * [Active Topics](https://wordpress.org/support/plugin/redirect-url-to-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirect-url-to-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirect-url-to-post/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Christoph](https://wordpress.org/support/users/camthor/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/exclude-uncategorized-posts/#post-17403773)
 * Status: resolved