• Resolved astoundzme

    (@astoundzme)


    I created a CPT and CP Taxonomy with terms. I updated my taxonomy and I didn’t check the migrate terms box before doing so and so now I have orphaned terms that are causing -2 at the end of permalinks with the same name as these orphaned terms. Where do I find these in the database to delete them?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Should be the wp_terms table, or whatever prefix your database tables may have.

    Thread Starter astoundzme

    (@astoundzme)

    Thanks for the quick reply. So what happens when I create a custom tax and then change the name without checking the migrate terms button? That table is empty. As an example, my term is /austin when I go to that url on the front-end it redirects to the home page. I’ve deleted everything that says Austin in the database and I’m still getting this error.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Technically, in regards to our plugin, renaming the taxonomy slug actually just creates a duplicate entry in our settings.

    Checking the migrate checkbox, has us do a bit more work where we get the term IDs that are from the old taxonomy slug, and update to the new taxonomy. Once that’s been done, we delete the original taxonomy from our settings. We don’t do a delete when simply renaming the slug.

    Hard for me to say what’s going on with regards to trying to track down the terms in your database, as I don’t know exactly what all tables you may have, or if the database is potentially being used by multiple installs. All I know for sure is that terms get stored in the wp_terms table.

    Thread Starter astoundzme

    (@astoundzme)

    Trippin… It was an image name.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Delete Old Taxonomy Terms’ is closed to new replies.