Remove # categories Wordpress blog sidebar!

Discussion in 'WordPress' started by mdvasanth86, May 18, 2009.

  1. #1
    The categories block in the sidebar have numbers in wordpress blog. How do i remove the numbers ??
     
    mdvasanth86, May 18, 2009 IP
  2. ~kev~

    ~kev~ Well-Known Member

    Messages:
    2,866
    Likes Received:
    194
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Edit the sidebar.php file - either with a text editor or with the wordpress editor - scroll down until you see the categories listing. Look for optioncount=1, and change it to optioncount=0.

    It should look something like this - <?php wp_list_cats('optioncount=0&hierarchical=1'); ?>

    But some of the sidebar codes I have seen looks different from that. Maybe that will get you pointed in the right direction.
     
    ~kev~, May 18, 2009 IP
    mdvasanth86 likes this.
  3. mdvasanth86

    mdvasanth86 Notable Member

    Messages:
    3,869
    Likes Received:
    285
    Best Answers:
    0
    Trophy Points:
    230
    #3

    I tried that.... It didn't work... Thanks anyways for your time. :)
     
    mdvasanth86, May 18, 2009 IP
  4. hmansfield

    hmansfield Guest

    Messages:
    7,904
    Likes Received:
    298
    Best Answers:
    0
    Trophy Points:
    280
    #4
    I don't think that is what he is talking about.

    When you go to your categories in your dashboard, hover your mouse over each category, and look at the bottom right of your browser, and it will show the url of the category with the corresponding number.
     
    hmansfield, May 18, 2009 IP
  5. ~kev~

    ~kev~ Well-Known Member

    Messages:
    2,866
    Likes Received:
    194
    Best Answers:
    0
    Trophy Points:
    110
    #5

    Some themes show the number of articles next to the category name in the sidebar. So that is you have 10 articles posted in category "abc" - in the sidebar the number 10 will be next to ABC category link. The theme I am using right now, that was how it was. The number of articles was in the sidebar. Changing that setting to 0 turned the numbers off. But I guess that is not what he was asking about.
     
    ~kev~, May 18, 2009 IP
  6. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Dashboard->Appearance->Widgets->Categories
    Uncheck "Show post counts"

    Otherwise, see if they go away with <?php wp_list_categories(); ?>
     
    Cash Nebula, May 18, 2009 IP
  7. vrktech

    vrktech Well-Known Member

    Messages:
    449
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #7
    yes "Cash Nebula" is right,

    you can turn off removing the "show_count=1" from wp_list_categories('........&show_count=1')
     
    vrktech, May 18, 2009 IP