WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type UI
[resolved] Changing Taxonomy Name Breaks Taxonomy Tags (3 posts)

  1. rardnek
    Member
    Posted 3 years ago #

    I created a bunch of Taxonomies using your plugin, then created some tags to use.

    I later decided i wanted to change the taxonomy name and when I did, it did not update the corresponding taxonomy name in the wp_term_taxonomy table, so all the tags I created were orphaned.

    I was able to update in the database to fix this, but it seems changing the taxonomy name should update the corresponding tags.

  2. catnip216
    Member
    Posted 2 years ago #

    What did you have to change in the database? I have a taxonomy called Type, which I just discovered conflicts with the Media Library tab, so I need to change it, but I've already populated the site with a couple hundred posts using that taxonomy :-/

  3. Henry
    Member
    Posted 2 years ago #

    @rardnek

    If you change the name of a taxonomy via functions.php you aren't updating the exisiting taxonomy, you're creating a new taxonomy and removing the old taxonomy - hence why your terms all got orphaned.

    You could always change the taxonomy name back to the original name and then your terms will reappear. At least you can then scribe them down with a good old pen and pencil to recreate later. Saves you having to delve into the database.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic