Skip Navigation

[Resolved] No slug – is that an option?

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 7 years, 7 months ago.

Assisted by: Nigel.

Author
Posts
#517828

I am trying to: create post types that do not have create a slug or subdirectory for that post type.

For example, I have a post type for Locations.

Right now it create pages with this URL structure:

example.com/locations/newyork

Instead I'd like it to be:

example.com/newyork

How do I make this work? Thanks so much!

#517836

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Hashim

Firstly, you are posting in the community forum, as a registered user you can post in the professional forum where you can expect more prompt support.

WordPress by default requires a slug for custom post types, which is partly designed to avoid naming collisions with standard posts and pages.

It is possible to override this with custom code, but that is outside our support policy. However, it is a common enough topic that you can find plenty of online posts about it. I searched and found this one which covers what is required simply, and suggest you read that and see if you can adapt it to your needs: hidden link

The forum ‘Types Community Support’ is closed to new topics and replies.