How to hide the subcategories in WP

Discussion in 'WordPress' started by banji, Feb 29, 2008.

  1. #1
    Greetings everyone,

    My problem is this. I have created category "Series" for my blog. Currently there are two subcategories under that parent category. Can you please help me to hide the subcategories? If I end up with 30 series, I wouldn't want them all be visible there. It will clutter the whole category section.

    It is preferred if I can just click "Series" and then only the whole 30 series be shown. Please help.. For more information on the category structure I have now, please visit LessonInLife.com

    Thanx in advance guys
     
    banji, Feb 29, 2008 IP
  2. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #2
    shallowink, Feb 29, 2008 IP
  3. banji

    banji Well-Known Member

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #3
    I'll try it out immediately :) thanx
     
    banji, Mar 1, 2008 IP
  4. kanwarjot

    kanwarjot Notable Member

    Messages:
    3,256
    Likes Received:
    283
    Best Answers:
    0
    Trophy Points:
    230
    #4
    if that does not help u can also do that manually by typing exclude ' category id' in the side bar where categories are called..
     
    kanwarjot, Mar 1, 2008 IP
  5. digimaya

    digimaya Banned

    Messages:
    320
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Have you sorted out the problem already?
     
    digimaya, Mar 1, 2008 IP
  6. mizaks

    mizaks Well-Known Member

    Messages:
    2,066
    Likes Received:
    126
    Best Answers:
    0
    Trophy Points:
    135
    #6
    I think

    <?php wp_list_categories('hierarchical=0'); ?>
    Code (markup):
    will do what you want. More info on the tag here.
     
    mizaks, Mar 1, 2008 IP
  7. banji

    banji Well-Known Member

    Messages:
    109
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #7
    kanwarjot - i have no idea what u said.. relatively a newbie :)

    digimaya - i've checked out the demo for the plugin, exactly what i want. just that now I am learning to widgetize my sidebar

    mizaks - tried your suggestion. end up all the subcategories is displayed as parent :) thanx for the link though, now I'm studying
     
    banji, Mar 2, 2008 IP