Skip Navigation

[Resolved] New Post Type without /[post-type]/ in the URL

This support ticket is created 4 years, 10 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 1 reply, has 2 voices.

Last updated by Christian Cox 4 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#1547997

We want to add a new custom post type which should work just like normal WP pages do.

Per default, a url of a new post of that type would look like: domain.com/post-type/new-article

But we want it to look like: domain.com/new-article

Which setting does the trick?

Thanks

#1548639

Hi, unfortunately there is no setting in wp-admin that will allow a custom post type's permalinks to follow this URL pattern. Types custom post types work within WordPress's standards for URL patterns, and for custom post types the standard is yoursite.com/something/post-title-slug. You can change "something" to a custom string, but you cannot remove it entirely with Toolset.

I did a quick search and found this post with a code-based solution:
https://wordpress.stackexchange.com/a/204210

I can't vouch for its effectiveness but it's worth looking into. Is there a reason why Pages will not work for your scenario? If you want to discuss other options, I'm happy to review more details of your project requirements and provide feedback.