JayminKapish
Subscribe to jayminkapish RSS Friend Jaymin Patel on Facebook Follow Jaymin Patel on Twitter

« Go to home page

Migrate Tags from UTW Tags to WordPress 2.3 Terms

I was running wordpress 2.0.5 since 2 years and did not get time to upgrade to WordPress 2.3.

So I decided last week to upgrade to WordPress 2.3 and I did. I upgrade the same way how wordpress advice us here.

After installation, I did notice it has migrated my categories tables to wordpress 2.3 Terms tables but nothing migrated from Tags tables. I was surprised! Did I make any mistake? Then it comes into my mind, it is Ultimate Tag Warrior plugin, which has created those tables for me not WordPress.

Now I had to migrate those tags from Tags table to Terms tables. So I wrote a script that does that job for me. I thought let me make that available to you, if someone would like to extend the script and build a smart plugin!

I would like you to read this before you use this script:

  1. Take backup of your database. It is not going to delete anything in the database though.
  2. Make sure you have Tags tables from Ultimate Tag Warrior in your database.
  3. Since Unique index created on slug column in Terms table, this script will add ’2′ add the end of tag if any duplicate key/slug found in the Terms table.
  4. Set MySQL Connection parameters in this file.
  5. Upload it to your server and run it. Just run it once!
  6. Do no forget to share your feedback via comments!

If you would like to look at it and review/install, please download PHP Code here.


9 Responses


Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


About

Wordpress Work

Plugins I like

Recent Posts

Wordpress News

Blogroll

Connect

I am excited about