WordPress.org

Ready to get started?Download WordPress

Forums

Categories with same name (5 posts)

  1. dilneiss88
    Member
    Posted 5 years ago #

    hello, i'm trying to create categories with same name
    but found a nice bug..

    trying to add:
    categorie 1
    > Sub 1
    > Sub 2
    categorie 2
    > Sub 1
    > Sub 2

    does not work!
    the php check only category name, but does not check the categorie parent id!

    need to create alot of these subs, but the script dont let me :S

    any hack?

  2. Shane G
    Member
    Posted 5 years ago #

    Hi,

    Please check with category.php file in your blog active theme and category-template.php from wp-include file and set the settings upon requirement.

    Thanks,

    Shane G.

  3. stvwlf
    Member
    Posted 5 years ago #

    Hi

    Category names in WordPress are unique across all categories. You can not have the same category name under two different partents. WordPress just doesn't work that way.

    consider if you could accomplish the same thing by using categories for category1 and category 2

    and tags for sub1 and sub2 - tags are not hierarchical so can be assigned to any post. You can then display posts that re in category 2 and tagged with tag sub2

    not appropriate in all situations but works well when it does

  4. laqrhead
    Member
    Posted 5 years ago #

    You can have duplicate names, but not duplicate slugs. I've created a hack to fix this:

    http://wordpress.org/support/topic/273986

  5. bellechan
    Member
    Posted 4 years ago #

    I like the solution of putting Categories in the top level of the menu and use tags for the sub levels, but how do you do this?

    I have search on google and haven't found a how to for this solution :/

    Thank you

Topic Closed

This topic has been closed to new replies.

About this Topic