S16
S16

Reputation: 2995

Duplicate sub-category slugs in WordPress

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:

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?

Upvotes: 1

Views: 5206

Answers (1)

Shelly
Shelly

Reputation: 380

I don't think you want to do this. First off, it looks like your permalink structure is set up using %category%/%postname% - which in and of itself is not a good thing. Not so bad on smaller sites, but the bigger your site is, the more unnecessary strain you're putting on the server. (see "Category in Permalinks Considered Harmful" http://ottopress.com/2010/category-in-permalinks-considered-harmful/) To try and create multiple slugs would exacerbate the problem, I would think.

A way around it would possibly be to create a set of Pages for your sections (i.e. "Product Name 1", "Product Name 2", etc.) and have categories set up that are called "Release notes", "FAQ", etc.; and tag your posts with the product name. Then you can run a query in the template file to pull in the posts that are tagged with the product page name you're currently on. Then you'd have the permalink setup you want.

Upvotes: 2

Related Questions