The MU forums have moved to WordPress.org

Default Categories AND Sub-Categories (3 posts)

  1. jskov
    Member
    Posted 15 years ago #

    I am using a sweet plugin for controlling the default set of Categories upon creation of a new blog

    http://natureofmind.org/2008/10/default-categories-for-new-blogs/

    Does anyone know how to manage sub-categories in the same manner?

    .... Wouldn't it be great if this same plugin supported just typing:
    Parent -> Child
    in the text-box to create the sub-category and assign the relationship?

    I would do it, but I don't know how. Any help much appreciated.

  2. tarmentano
    Member
    Posted 15 years ago #

    I agree with jskov. This functionality would be awesome. Does anyone want to take a look at the plugin and see if they can figure it out. I'd be willing to test it out and provide feedback.

    Here is a link to the plugin code for easy viewing - http://docs.google.com/Doc?id=ah8hr3gk4rf9_51dhxsvrdj

    Thanks
    Terence

  3. JONDPERRY
    Member
    Posted 14 years ago #

    I just figured out a way to do subcategories but it makes all the new categories become the subcategories of the first cat. You can't control it any more then that with my hack.

    To do it you just have to edit the defaults-categories.php of the "Default Categories for new blogs" plugin.

    Go to line 166. It should say this

    'category_parent' => '',

    Put a "1" in there so it looks like this

    'category_parent' => '1',

    Save the file and you're done

About this Topic