1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How To Hide Wordpress Category

Discussion in 'WordPress' started by bigpapa, Jan 24, 2008.

  1. #1
    I have a category called "Featured" that I use as a second category for some posts I write. This is used only for my own organization.
    SEMrush
    For example, I will write a post and file it under "Category 1" and "Featured". In the different areas of my blog that list all the categories, I would like to not display the "Featured" category, as this is only for my own personal organization. The line of code Im looking at is:

    <?php wp_list_categories('sort_column=name&title_li='); ?>
    Code (markup):
    Does anyone know how to exclude a certain category from being listed, the same way you can exclude page numbers? Thanks!!!!
     
    bigpapa, Jan 24, 2008 IP
    SEMrush
  2. Rapidrobert

    Rapidrobert Peon

    Messages:
    160
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
  3. just-4-teens

    just-4-teens Peon

    Messages:
    3,968
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
  4. bigpapa

    bigpapa Banned

    Messages:
    273
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for the links. I was able to hide the categories within Wordpress, but the problem Im facing is actually within the breadcrumb navigation plugin. When you view the post, the breadcrumb navigation plugin shows something like this:

    Home > Category A, Category B > Article Name

    Im trying to hide, for example, Category B from displaying, and the plugin is not written using Wordpress codex.
     
    bigpapa, Jan 28, 2008 IP
  5. bwb

    bwb Peon

    Messages:
    100
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    did you ever find a solution to this? im having the same problem
     
    bwb, May 18, 2008 IP
  6. gouthamlal

    gouthamlal Peon

    Messages:
    64
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I too had the same problem.Its solved now.
     
    gouthamlal, May 19, 2008 IP
  7. ksb2050

    ksb2050 Well-Known Member

    Messages:
    906
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #7
    @gouthamlal - Why don't you post your solution since this thread attracted at least 3 people with similar issues ;)
     
    ksb2050, May 19, 2008 IP
  8. pipes

    pipes Prominent Member

    Messages:
    12,767
    Likes Received:
    958
    Best Answers:
    0
    Trophy Points:
    360
    #8
    I echo that, if you have a solution gouthamlal please share so others can do this too.
     
    pipes, May 20, 2008 IP
  9. ferman

    ferman Well-Known Member

    Messages:
    967
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    140
    #9
    there is an option in wordpress to make post private....try checking that
     
    ferman, May 20, 2008 IP
  10. angrezy

    angrezy Peon

    Messages:
    75
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    just by adding

    <?php
    wp_list_categories('exclude=4,7&title_li='); ?>
    Code (markup):
    Here 4, 7 are the category id's, which you can find by dropping you mouse on category name in admin section.
     
    angrezy, Jan 8, 2010 IP
  11. AndrewBowen

    AndrewBowen Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Just add this to the end of your style.css file. Change the cat-item number as applicable.
    .cat-item-1 {display:none;}
     
    AndrewBowen, Jul 5, 2010 IP
  12. romika

    romika Member

    Messages:
    264
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #12
    Well you can even customised your theme go to theme editor and single.php/page.php and remove the "breadcrumb code"
     
    romika, Jul 6, 2010 IP
  13. otshare

    otshare Peon

    Messages:
    70
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Thanks angrezy, the exclude option did the trick for me.
     
    otshare, Jul 6, 2010 IP
  14. Alexandros1

    Alexandros1 Peon

    Messages:
    332
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #14
    You could hide them if you had the CSS upgrade.
     
    Alexandros1, Jul 7, 2010 IP
  15. dakco

    dakco Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    delet this code in template, or just choice a template with no category.
     
    dakco, Jul 9, 2010 IP