Passer la navigation

[Résolu] Hide “Custom post type” slug from the URL

This support ticket is created Il y a 2 months, 4 weeks. 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Fuseau horaire du supporter : Asia/Kolkata (GMT+05:30)

Ce sujet contient 1 reply, a 1 voix.

Dernière mise à jour par Minesh Il y a 2 months, 4 weeks.

Assisté par: Minesh.

Auteur
Publications
#2842218

Hey,

We are using Toolset types plugin. We created a custom post type called Grade Guide. I am wondering if we can remove "grade-guide" from the individual page URL.

lien caché

Can we change it to lien caché

#2842235

Minesh
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

There is no native way to remove the post-type slug from the single post permalinks.

In order to achieve this - You'll have to rely on some custom rewrite rule workarounds, as discussed in the following resource:
- lien caché
- https://wordpress.stackexchange.com/questions/203951/remove-slug-from-custom-post-type-post-urls

Alternatively, you can check any of the following plugins that fulfills your requirement:
- https://wordpress.org/plugins/wp-better-permalinks/
- https://wordpress.org/plugins/permalink-manager/
- https://wordpress.org/plugins/custom-post-type-permalinks/