WordPress.org

Ready to get started?Download WordPress

Forums

Duplicate sub-category slugs in WordPress (7 posts)

  1. Greg-J
    Member
    Posted 3 years ago #

    So I've run into a bit of an issue with the way I need to structure a particular site using WordPress. Take the following set of URL's for example:

    http://url.com/products/product-name/downloads/
    http://url.com/products/product-name/faq/
    http://url.com/products/product-name/release-notes/

    The issue I'm running into is that wordpress will not allow me to duplicate the sub categories downloads, faq and release-notes.

    Is there a plugin out there anyone is aware of that will allow duplicate category slugs as long as the category is assigned to a parent?

  2. transom
    Member
    Posted 3 years ago #

    Try adding category to your url - e.g.
    http://url.com/category/products/product-name/downloads/ etc.

    That will let WordPress differentiate these urls from page or posts.

    There are plugins that allow you to remove category from the url and still have it resolve as expected.

  3. Greg-J
    Member
    Posted 3 years ago #

    I should have specified that I am using that plugin. Either way, this will not work.

    WordPress will not allow two categories to exist with the same slug, regardless of if they are nested or not.

    I'm looking for a plugin that will accomplish this.

  4. transom
    Member
    Posted 3 years ago #

    It seems that this is "baked-in" to WordPress. The most common solution, I have seen is to create a custom post type (e.g. products) perhaps as a hierarchical type.

  5. Greg-J
    Member
    Posted 3 years ago #

    What an incredible oversight.

    The WP team really needs to focus on the taxonomy of WordPress. There's no logical reason for the inflexibility here.

  6. Ian Price
    Member
    Posted 3 years ago #

    Did you ever find a good way (which works nicely) around this?

  7. lkraav
    Member
    Posted 2 years ago #

    Needing the same thing with MarketPress shopping cart, so bumping.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.