Skip Navigation

[Resolved] edit post type slug

This support ticket is created 3 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.

This topic contains 3 replies, has 2 voices.

Last updated by winyS 3 years, 6 months ago.

Author
Posts
#2090323
Schermafbeelding 2021-06-16 om 11.25.49.png
Schermafbeelding 2021-06-16 om 10.59.16.png
Schermafbeelding 2021-06-16 om 10.54.04.png

I want to change the post type slug for the CPT Woongroepen from lvgo_group to woongroep.
Link to my site: hidden link

I have followed this tutorial:
https://toolset.com/forums/topic/custom-post-type-slugs/

First step after having changed the slug:
Usage for archive loops.
Here I want to select the already existing WordPress Archive for Woongroepen.
But the only option I get is to create a new archive.

View screenshots.

Earlier, I have tried out this in staging (www.lvgo.nl/staging) and there it worked as expected.

#2090459

Nigel
Supporter

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

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

Archives, Views, Forms, assignments of taxonomies or custom field groups, each of them when connected to some post type (e.g. a form to publish posts of some type) is connected by the post type slug.

If you change the post type slug then the form, View, archive etc thinks that the post type to which it is connected no longer exists, and it is expected that this will introduce problems.

In the case of a custom archive, the archive will no longer be assigned to any post type. The solution is to edit it and re-assign the post type in question.

Likewise a View that displays posts of that type will need the post type re-setting. Similarly forms, the assignment of Custom Field Groups, etc.

#2092391
Schermafbeelding 2021-06-18 om 10.04.34.png
Schermafbeelding 2021-06-18 om 10.05.17.png

My issue is resolved now. Thank you!
I was just confused because in the previous version there was a little link under the archive name to change its usage. I found this very useful. (see screenshots)

#2092409

My issue is resolved now. Thank you!