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.

my categories vanished in wordpress

Discussion in 'WordPress' started by forumrating, Jul 16, 2009.

  1. #1
    while doing upgrades in one of my wordpress blog the categories vanished

    how can i fix back the categories, can some one just guide me through.
     
    forumrating, Jul 16, 2009 IP
  2. qazu

    qazu Well-Known Member

    Messages:
    1,834
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Just add the Categories widget on the widgets page. In wp-admin, click on appearance and select widgets. Then scroll down to categories and click add.
     
    qazu, Jul 17, 2009 IP
  3. navjotjsingh

    navjotjsingh Peon

    Messages:
    640
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Can you tell from where did they vanished - Site or from Dashboard?
     
    navjotjsingh, Jul 17, 2009 IP
  4. forumrating

    forumrating Notable Member

    Messages:
    6,565
    Likes Received:
    347
    Best Answers:
    0
    Trophy Points:
    275
    #4
    please check www.tradehuge.com under the latest post it shows categories unavailable
     
    forumrating, Jul 17, 2009 IP
  5. navjotjsingh

    navjotjsingh Peon

    Messages:
    640
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Are the categories shown via a widget or sidebar code? If using sidebar code, can you paste that code here?
     
    navjotjsingh, Jul 17, 2009 IP
  6. forumrating

    forumrating Notable Member

    Messages:
    6,565
    Likes Received:
    347
    Best Answers:
    0
    Trophy Points:
    275
    #6
    <h2>Categories</h2>
    <ul>
    <?php wp_list_categories('orderby=name&show_count=1&hide_empty=1&hierarchical=1&exclude=,2&title_li='); ?>
    </ul>

    this is the code in sidebar.
     
    forumrating, Jul 17, 2009 IP
  7. navjotjsingh

    navjotjsingh Peon

    Messages:
    640
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Replace the above code with the below and try again:

    <h2>Categories</h2>
    <ul>
    <?php wp_list_categories('orderby=name&show_count=1&hide_empty=1&hierarchical=1&exclude=2&title_li='); ?>
    </ul>
     
    navjotjsingh, Jul 17, 2009 IP
    forumrating likes this.
  8. forumrating

    forumrating Notable Member

    Messages:
    6,565
    Likes Received:
    347
    Best Answers:
    0
    Trophy Points:
    275
    #8
    works perfect now , thread to be closed.
     
    forumrating, Jul 17, 2009 IP
  9. navjotjsingh

    navjotjsingh Peon

    Messages:
    640
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Reason for it not working was a comma before 2 in exclude which said wordpress to exclude all categories. Removing the comma worked.
     
    navjotjsingh, Jul 17, 2009 IP