The MU forums have moved to WordPress.org

Add a Second Category List on the Admin Write Page (1 post)

  1. trivum
    Member
    Posted 16 years ago #

    I am trying to add a second category box on the admin write page. I want one category box to contain commonly used categories and the second box to contain all categories. (This is for the Admin main blog - I'll have a lot of categories there.)

    In the edit-form-advanced.php file I found the code to produce the dropdown categories:

    <fieldset id="categorydiv" class="dbx-box">
    <h3 class="dbx-handle"><?php _e('Categories') ?></h3>
    <div class="dbx-content">
    <p id="jaxcat"></p>
    <ul id="categorychecklist"><?php dropdown_categories(); ?></div>
    </fieldset>

    I repeated that code and it gave me a new box, but when I try to limit the categories with arguments, I couldn't get it to work. I've tried excluding, like this:

    <?php dropdown_categories('exclude=1,3'); ?>

    I've tried including categories too (which would be better, actually).

    <?php dropdown_categories(2); ?>

    I've tried a number of things, actually. Am I doing this wrong or missing something? Do I need to make changes elsewhere?

About this Topic

  • Started 16 years ago by trivum