Skip Navigation

[Resolved] Slug reserved by post type

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.

This topic contains 1 reply, has 1 voice.

Last updated by thomasS-11 5 years, 9 months ago.

Author
Posts
#271342

Hello again.

Sorry for my many support threads lately, i guess im building more and more advanced sites with WP-Toolset!

Im experiencing some problems with slugs.

I have a page called "references" .. but i have a post type called references as well..

I want to keep the slug domain.com/references to view the page.
But i want references to have domain.com/references/reference-name
I have disabled has_archive so it doesnt have a archive that uses that path.

I can't do this because when i create my post type, and gives it the slug of "references" it says that its already in use..

It's not in use that that specific path because archive is disabled so the "page" references can use it.

#271364

Im pretty sure many others will encounter this problem, so i found a solution..

If you dont want to use a archive page, and just use a normal page instead, make the Post Type with the Slug you want to - UNTICK "has_archive" and click save..

Im not sure if it will work in another way, but what i did was having the post opened in another window, and as soon as i saved my post type, i edited the slug of the page i wanted to represent the posts to the same slug as the post type has.. it actually allowed me to save and without adding a number to the slug..