• Hi
    I have recently installed WP.
    I created 2 categories, and created some posts.

    However, my ctegories are not shown on the right sidebar. I am using the default theme. It simply says:
    “Other Information” > “No categories”.

    I can see all my posts on the web page.

    So does anyone know whey the categories are not shown on the side bar?

    regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Tom Lany

    (@tomthewebmaster)

    Maybe your theme does not have anything telling it to put links to categories on your sidebar. What theme are you using? Could you give us a link to your site?

    Thread Starter hasanali00

    (@hasanali00)

    Well, I do have this code in wp-content/themes/default/sidebar.php

    <?php wp_list_pages(‘sort_column=menu_order&title_li=<h2>My blogs</h2>’ ); ?>

    • <h2>Other Information</h2>
      <?php wp_list_cats(‘sort_column=name&optioncount=1&hierarchical=1’); ?>

    <?php get_calendar(); ?>

    • <h2>Archives</h2>
      <?php wp_get_archives(‘type=monthly’); ?>

    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    <?php get_links_list(); ?>
    <!–

    • <h2>Meta</h2>
      <?php wp_register(); ?>

    • <?php wp_loginout(); ?>
    • ………….

    Thread Starter hasanali00

    (@hasanali00)

    Simple answer:
    A category would only show if it contains a post

    Tom Lany

    (@tomthewebmaster)

    Hasanali00, I think that you have identified your problem. For me, I don’t use the category “Uncatogorized,” so it doesn’t show up on my sidebar. Try posting an article in the desired categories and seeing what happens.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Categories not shown on the side bar’ is closed to new replies.