Skip Navigation

[Resolved] Permalink structure for custom post types

This support ticket is created 5 years, 6 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Christian Cox 5 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#1283283

I've created a custom post type: Recipes (slug: recipes). My WP Post permalink structure is: site.com/%category%/%postname%/
Is there any way to get something similar that includes the CPT name or slug in the permalink?
I looked at ticket you responded to by Nicholas but it was a bit off-point.

#1283285

Whoops. I misstated the question. Is there any way to get the WP category which is also used by that CPT into the permalink in any position, beginning or end?

#1283349

There's nothing built into Toolset that will achieve that kind of custom URL structure, unfortunately. Types custom post type URLs are based on the WordPress standard, which is /post-type-slug/post-slug/. You have the option of using a different static slug instead of the post type slug, but it's not dynamic or based on a category term. That structure would require custom code, or a third-party custom permalink plugin.