category drop-down not showing categories (2 posts)

  1. furtherup
    Posted 10 years ago #

    So, I'm trying to put a category drop-down list on my sidebar that will give me just a drop-down showing all my categories, and if it could do my sub-categories that'd be great to. I'm using this code, from a page on the Codex:

    <form action="<?php echo $PHP_SELF ?>" method="get">
    <?php dropdown_cats(); ?>
    <input type="submit" name="submit" value="read" />

    It used to work on my old blog on my old host but it now only shows the "uncategorized" category though I have 4 categories and 4 sub-categories. Could someone please give some suggestions on what to do that might whip it into shape?

  2. MichaelH
    Posted 10 years ago #

    In WordPress 2.0.2, I copied/pasted the exact code from the Dropdown with Submit Button section of Template_Tags/dropdown_cats and it showed all Categories that had posts.

Topic Closed

This topic has been closed to new replies.

About this Topic