WordPress.org

Forums

Duplicate Category and Tags Slugs (7 posts)

  1. manheim
    Member
    Posted 4 years ago #

    I've searched everywhere but can't seem to find a solid answer.

    Is it possible to have duplicate category and tag slugs? For example:

    http://website.com/category/umbrella/
    http://website.com/tag/umbrella/

    ...without it automatically adding a "-2" to the end of one of them? Why does WordPress not recognize the difference between categories and tags?

  2. chinmoy29
    Member
    Posted 4 years ago #

    because both are different things. One is category and Other is tag. There have no relation between them.

  3. manheim
    Member
    Posted 4 years ago #

    Please read my question again because your answer doesn't make any sense. Your answer would suggest that what I'm asking IS possible...in which case, how?

  4. manheim
    Member
    Posted 4 years ago #

    Perhaps I can explain further: if I create a category called "umbrella" and then create a tag called "umbrella", WordPress will automatically change the tag slug to "umbrella-2". Why? How do I stop that from happening?

    If they actually have no relation to one another, as you suggest, then why is one affecting the other?

  5. manheim
    Member
    Posted 4 years ago #

    Any answers?

  6. Vcize
    Member
    Posted 4 years ago #

    Anyone ever find a solution to this? There's no reason for it to stick a "2" to the end of the tags since the URLs for tags and categories are different. It makes no sense.

  7. waterprism
    Member
    Posted 3 years ago #

    Yeah, I've never found a solution. Does the same thing for categories. You can't have two child categories with the same name, as in /parent-1/child/ and /parent-2/child/, WordPress just makes the second one /parent-2/child-parent-2/ so it looks to the search engines like search engine spam. Absurd. Completely different path in a real world, static html folder structure but WordPress can't find a way to fix it in their backend and seem to have completely given up on trying. It's completely counterintuitive and completely counterproductive for good SEO. WordPress, however, aren't interested in fixing it. It came up during some misguided bug report way back in the day. They "fixed" it by doing this. And now it stays. Functions that need to call a category should call the ID instead. It stays. We tell them it's whack, it's broken, it's not what we want. It stays. Whatever.

Topic Closed

This topic has been closed to new replies.

About this Topic