Custom Slugs With Folders - Wordpress

fasttrak

Elite Member
Joined
Sep 12, 2016
Messages
3,514
Reaction score
3,988
Is it possible to edit individual post slugs/URLs to add folders?

I know I can change the permalink structure but I do not have a standard structure, things like:

domain.com/folder/folder/folder/postname
domain.com/folder/postname
domain.com/folder/folder/postname

etc

I could setup redirects but if possible I would like to keep the exact same structure.

Any plugins, methods or ideas?

Thanks
 
Is it possible to edit individual post slugs/URLs to add folders?

I know I can change the permalink structure but I do not have a standard structure, things like:

domain.com/folder/folder/folder/postname
domain.com/folder/postname
domain.com/folder/folder/postname

etc

I could setup redirects but if possible I would like to keep the exact same structure.

Any plugins, methods or ideas?

Thanks
Yes but you might need to write some code.

WordPress allows you to make custom page template.

So you can use that and create a simple php function that saves the link as you enter everytime.

This way permalink stored in MySQL will be what you want and shown like what you want.

And as @tazarbm mentioned custom taxonomies might help too. You can create a php function which basically adds whatever taxonomies you declare in each post between the domain and the end url.

As this is obviously very custom the best way would be doing this through code. Unless someone made a plugin already for this too.
 
Back
Top