• Resolved daztayor

    (@daztayor)


    Is it possible to easily change my custom taxonomy name without having to recreate a new list of taxonomies
    ie in functions.php

    register_taxonomy(‘types’,array(‘accommodations’), array(….

    I’d like to be

    register_taxonomy(‘communities’,array(‘accommodations’), array(…

    When I do this however it obviously loses all data as in the database the ‘taxonomy’ table shows ‘types’.
    I’ve tried running an sql query which works to an extent and changes the name but breaks the navigation – must be cross referenced elsewhere.

    Many thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • not sure if this helps or not, but if you change the name and do the query, do you also flush the rewrite rules?

    Thread Starter daztayor

    (@daztayor)

    Hi thanks for response.
    No luck, I change to
    register_taxonomy(‘communities’…
    but I’m left with an empty taxonomy list, the database field remains as types. I’m guessing its a start again job. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change custom_taxonomy name’ is closed to new replies.