WordPress.org

Ready to get started?Download WordPress

Forums

categories with same name, different parents (2 posts)

  1. shaky
    Member
    Posted 9 years ago #

    Is it possible to have two categories with the same name, but with different parents?
    e.g.
    Parent = test1, category = cat1
    Parent = test2, category = cat1
    It seems not, I get a dupe key error:
    WordPress database error: [Duplicate entry 'test1' for key 2]
    INSERT INTO wp_categories (cat_ID, cat_name, category_nicename, category_description, category_parent) VALUES ('0', 'test1', 'test1', '', '6')
    Thanks.

  2. basketball
    Member
    Posted 9 years ago #

    I always put a space in front of the category, in my category system I have 5 parent categories (including general), and around 3-5 subcategories under four of the parents. Since wordpress doesn't really have a good category organization system. I start from the top (I have 5 categories plus 3 subcategory groups), so I name the category that appears at the top with 8 spaces, then the second category group with 7 spaces, all the subcategories with 6 spaces, and so on until the last set of subcategories which get no spaces in front.
    There might be a better way to do this but I just approach it that way. =)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.