Skip Navigation

[Resolved] Use custom structure in permalink settings without affecting Custom Post types

This thread is resolved. Here is a description of the problem and solution.

Problem:

I would like to set my WordPress permalink settings to custom structure "/blog/category/postname."
I would like this to NOT affect my Custom Post types, which right now have the permalink structure "/post-type/postname."

So blog posts would show up like this:
"/blog/magic-loop/switch-needles-on-magic-loop"

Solution:

There isn't such a built-in feature within Toolset Types plugin

Relevant Documentation:

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by liatG 5 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#1222058

Hi there,

I would like to set my WordPress permalink settings to custom structure "/blog/category/postname."
I would like this to NOT affect my Custom Post types, which right now have the permalink structure "/post-type/postname."

So blog posts would show up like this:
"/blog/magic-loop/switch-needles-on-magic-loop"

Whereas my Custom Post type Knitting Videos would show up like this:
"/knitting-video/knit-faster-on-magic-loop"

Can you advise me as to how to safely do this?
Thank you!

#1222205

Hello,

There isn't such a built-in feature within Toolset Types plugin, you can add a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
Our developers will evaluate it.

And when you edit the custom post type, in section "Options", there is an option to setup static text in rewrite rule: Use a custom URL format

#1222695

Thank you so much for this workaround. I will add the feature request.

I ran into one issue that did not allow me to implement this workaround. As I was changing all my Custom Post Types' and Custom Taxonomies' rewrite settings, I came across a Custom Taxonomy that did not allow me to save changes to it.

I got the error "You cannot use this slug because it is already used or a reserved word. Please choose a different slug."
However, this slug was already the existing slug when I went to modify the Custom Taxonomy. I'm not sure how it can be "already used" if that is the current slug.

Is there any way to track down where the conflict is? The slug is "my-classes" and it's a very important one to the structure of my site.

Thanks for any help you can provide.
Cheers,
Liat

#1222826

Please check if there is any other page is using the same slug "my-classes".

If there is, then it will conduct the problem you mentioned above:
You cannot use this slug because it is already used or a reserved word. Please choose a different slug.

You will need to consider change the slug to something else, for example:
- my-classes-cpt
- my-classes-tax

#1223077

Thank you, Luo. It didn't occur to me to look outside Types. Of course I had a page with the slug "my-classes." I was able to change that URL, save my Custom Taxonomy, and then change the page URL back.

Thank you for helping me get my permalinks exactly how I want them!

-Liat