Hide a Category
From the WordPress.org Support forums:
I need to prevent my default category from appearing in the list of category links. Is there a way to hide the default category title, but still display all posts when the user clicks the “blog” (show all) tab?
biodrama
You can use a little CSS added to the end of your style.css file to stop a category title from appearing in the list, in your example, the “Uncategorized” default category can be made to not show up with:
.cat-item-1 {display:none;}
If you want to use a different default category, finds its ID and replace the ’1′ above accordingly.
© 2009, BuyNowShop. All rights reserved.
- Share this:
- Share
Related posts:
- BNS Featured Category 1.6
- BNS Featured Category 1.9
- Hide a Menu Page
- BNS Featured Category 1.8.4.1
- BNS Featured Category 1.5
Tags: How To
< 140
I am Cais: WordPress junkie and blogger; maker of fine themes and plugins; WP Theme Review Team admin; Guitar player; and, mischief managerTwitter Follow Button
Follow @JellyBeenSearch
Buy me a coffee?
... or grant an Amazon wish-
Buy them a coffee?
Let’s Play
Deutsche Spieler
Visit www.OnlineCasinoClub.de for offers & promotions.Practice Safe Bets
Find the most trusted gambling sites by visiting PlayersJet before you decide where to play.US Poker Sites
See this list of US poker sites at pokernewsreport.comLooking for Bingo Reviews?
Ante Up?
Visit onlinepoker.net, a complete guide to playing USA poker, online poker in the UK and globally.Need A Domain?
Need a Host?
a la Carte
Categories
- Contributed (1)
- CSS (5)
- News (110)
- Promoted (2)
- Showcases (4)
- Uncategorized (2)
- WordPress (122)
WordPress
Category: WordPress
Category: Showcases
Tag: Update
Desk Mess Mirrored 2.0Desk Mess Mirrored version 2.0 is now available at WordPress.org as of January 11, 2012.
- Share this:
- Share
Desk Mess Mirrored 2.0-RC1Just a quick note to those using the Desk Mess Mirrored theme and any Child-Themes of it, the latest version (2.0) is now set to its first Release Candidate (RC). Please feel free to have a look around this site to get an idea of the visual changes (note the new typography) as well as [...]
- Share this:
- Share
Archives
- January 2012 (1)
- December 2011 (3)
- November 2011 (6)
- October 2011 (2)
- September 2011 (3)
- August 2011 (1)
- July 2011 (5)
- June 2011 (2)
- May 2011 (4)
- April 2011 (1)
- March 2011 (3)
- February 2011 (2)
- January 2011 (1)
- December 2010 (3)
- November 2010 (1)
- October 2010 (2)
- September 2010 (4)
- August 2010 (2)
- July 2010 (2)
- June 2010 (3)
- May 2010 (1)
- April 2010 (8)
- March 2010 (2)
- February 2010 (7)
- January 2010 (5)
- December 2009 (5)
- November 2009 (9)
- October 2009 (6)
- September 2009 (11)
- August 2009 (13)
- July 2009 (7)
- June 2009 (8)
- May 2009 (4)
-
Canned Goods






9 Comments
This bit of code was used on this blog showcasing beautiful wood furnishings and amazing art pieces. Enjoy!
Worked for me in my WordPress v2.8. It saved a lot of my time.
So thanks and keep up the good work.
I have been searching for a solution to this for some time now, thank you so much
:):)
@Rebecca Lee – You are welcome! It’s such a nice little CSS trick, too.
Oh my gosh, thank you so much for this code! I’ve been trying to hide the Uncategorized category for months and it was driving me crazy not being able to figure it out. Nothing worked until I found you code. Thank you!!
s.i.´s last post … The Tie That Binds
Thanks a lot, it worked perfectly!!
Salu2!
@Samuel – Great! I’m glad you were able to use this.
You could also use the exclude argument, since the ID for Uncategorized is almost always 1. If it was a crazy install, neither your CSS trick or this would work though, wp_list_categories(‘exclude=1′)
@Pete – Using the exclude parameter will also work, but the exercise was one of using CSS to accomplish the same goal for the sake of those that do not want to delve into the parameters of the ‘wp_list_categories()’ function. Although I do not understand why you think once the category (any category for that matter) is identified that either method would not work?