Forums

Can two sub-categories have same name (6 posts)

  1. in2matrix
    Member
    Posted 4 years ago #

    Hello,
    Can I have following category structure in WP 2.5?
    National
    News
    Crime

    International
    News
    Views

    Ideally I would like to keep slugs for News under National and International same but I can live with different slugs.

    Currently I have News as a sub category under National category. When I try to create News sub category under International category, I get a validation error.

    Thanks in advance.
    - AS

  2. tylerc083
    Member
    Posted 4 years ago #

    I've tried to do this as well - with no luck.

    This was possible in previous versions of WP and is keeping me from upgrading.

  3. minute44
    Member
    Posted 4 years ago #

    Well, I imagine it's because SQL doesn't allow two keys with the same name. In previous versions it may have handled categories in a different way.

  4. tylerc083
    Member
    Posted 4 years ago #

    Hopefully they'll update it so that it's only two children with the same parent that can't have the same key, rather than any two categories overall.

    Also, I've tested and it doesn't matter if the slugs are different. It uses the title itself.

  5. gkMotion
    Member
    Posted 3 years ago #

    Check wordmonkey's comment in the following:
    http://core.trac.wordpress.org/ticket/6542
    (near the bottom of the page)

  6. Ryan S
    Member
    Posted 3 years ago #

    But this is really a panic man... I hope they will correct this in the next version!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags