I am trying to:
Restore taxonomies that disapeared
After some website-issues, the taxonomies for CPT disapeared. The values are still stored, but not visible backend.
We fixed a lot of them with just creating new ones with the same name, all the values where there. But a couple of taxonomies that has the same name plural and singular, and with the same slug, we get the error-message "You cannot use this slug because it is already used or a reserved word. Please choose a different slug.".
So that work-around does not work for these taxonomies.
Se image for the Taxonomie "Kommer". So, how can we restore it?
Hello. Thank you for contacting the Toolset support.
In WordPress ecosystem the slug should be unique site wide. You can not use the existing or reserved slug.
I installed the database management Tool adminer plugin to check for duplicate slug and I found two entries with the same slug as you can see with the following screenshot:
- hidden link
Can you please make sure you should use unique slug sitewide. You will have to change those existing slugs to something else and then you should try to check and add the taxonomy with the same slug.
The problem is that they were created in toolset years ago, but suddenlt disapeared. So they are in the database, yes, but they should be visible backend. But they are not. I'm wondering how to fix that.
The only way is to change the existing duplicate slugs to another slug.
But we can not do on live/production site. If you can share staging site then I will try to fix there and check if changing the existing slugs those are duplicate of taxonomy slug, will try to change to another slug and see if that able to fix the issue.
Even you can try to do that but before doing any modification I suggest you should take full backup of your database as in any case you have a backup to restore.