Title: Changing Directory Structure
Last modified: August 20, 2016

---

# Changing Directory Structure

 *  [titan21](https://wordpress.org/support/users/titan21/)
 * (@titan21)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/changing-directory-structure/)
 * Is there a way of prefixing blog posts with a custom directory structure so that,
   for example, an article relating to cakes would be permalinked with:
 * ‘[http://example.com/cakes/gateau&#8217](http://example.com/cakes/gateau&#8217);
 * I know if you set a category with a post, you can set the permalinks to display
   the category before the blog post name but what if a blog post has more than 
   one category attached to it?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [mar1965](https://wordpress.org/support/users/mar1965/)
 * (@mar1965)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/changing-directory-structure/#post-3250599)
 * Hi there titan21!
 * Check out this article in the Codex regarding [Taxonomies](http://codex.wordpress.org/Taxonomies).
   Categories are an example of a taxonomy, but there are others. The [Custom Taxonomies](http://codex.wordpress.org/Taxonomies#Custom_Taxonomies)
   might help you (although I wouldn’t recommend the plugin referenced).
 *  Thread Starter [titan21](https://wordpress.org/support/users/titan21/)
 * (@titan21)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/changing-directory-structure/#post-3250620)
 * Perfect! Thank you.
 * I also found [this article](http://shibashake.com/wordpress-theme/add-custom-taxonomy-tags-to-your-wordpress-permalinks)
   which gave me a bit more info on using the new taxonomy in permalinks.
 * I’m kinda thinking that I don’t really need the in-built category functionality
   so I’ll look at making that unavailable at some point.
 * One issue I have come across however. I was using the category cake previously
   as in my example above. But when I define something as “cake” with my new taxonomy,
   my permalinks use “cake-2”. I even tried deleting the category “cake” to see 
   if that would fix things but no joy. Is there a way to “flush” the categories
   so this doesn’t happen and also, why would one taxonomy have a bearing on another
   taxonomy?
 *  [mar1965](https://wordpress.org/support/users/mar1965/)
 * (@mar1965)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/changing-directory-structure/#post-3250626)
 * Hi!
 * Is there a previous post that used that category “cake” as a slug that you might
   have deleted? If it’s still in the Trash, that might be the cause. If that is
   the case, try deleting the trash permanently.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Changing Directory Structure’ is closed to new replies.

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [directory structure](https://wordpress.org/support/topic-tag/directory-structure/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [mar1965](https://wordpress.org/support/users/mar1965/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/changing-directory-structure/#post-3250626)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
