We had custom taxonomies on our site that are no longer displaying in the backend and the frontend page urls are showing 404 errors. The taxonomies are still in the database and I cannot recreate them because the system says they already exist.
Hello. Thank you for contacting the Toolset support.
That is really strange. Can you please specify what taxonomy you created and it was attached to what post type?
Have you performed any actions or installed any new plugins?
I will require admin access details and problem URL to review your current setup and check whats going wrong with your setup.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Minesh is on vacation so I'll be following up on this ticket.
While I can see the issue on your website, I couldn't reproduce this on my test website. On my test website, I deleted an existing taxonomy and then registered it again without any difficulty. The existing terms were recognized correctly, too.
This suggests that something specific to your website is involved. Do I have your permission to download a clone/snapshot of your website? This will help in investigating this on a different server, in more depth.
Thank you for waiting, while performed some troubleshooting on your website's clone.
By default Toolset Types stores the information about the custom taxonomies in the options table with the key 'wpcf-custom-taxonomies'.
But, on your website, the record of this option wasn't saved correctly. I was able to fix this on your website's clone using the following steps, which you can also use on your actual website:
1. Please add the following code in the active theme's "functions.php" file, to delete that record for the 'wpcf-custom-taxonomies' option:
delete_option( 'wpcf-custom-taxonomies' );
2. Next, visit the website's homepage a couple of times (so that the code gets executed). After that, remove the code added in step 1.
3. Now, register the custom taxonomy with the slug "procedure" again and it will be added and the existing terms for this taxonomy will also be restored.
( screenshot: hidden link )
I hope this helps and please let me know if you need any further assistance with this.