[wp-hackers] [Download] Script to Convert Old WP-Tags to new WP Taxonomy

Computer Guru computerguru at neosmart.net
Fri Jun 29 19:09:38 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've written a script to convert old (pre-WP2.2 Reboot) tags and categories
to the new system. 

You can see its results on my site @ http://neosmart.net/blog/
If you see anything weird there (with regards to the tagging system), please
let me know!

Instructions:

0. BACKUP YOUR DATABASE!!!!!!!!!!!
1. Download EZSQL and extract to your HD (I'm using ezsql for db access)
2. Upgrade your blog to the latest SVN
3. Upgrade your database via the db upgrade wizard
4. EMPTY (not delete) tables: wp_terms, wp_term_taxonomy,
wp_term_relationships
5. Download http://neosmart.ath.cx/CatConvert.txt
6. Change $includes in CatConvert.txt to the path to EZSQL files (only
Core.php and MySQL.php are needed); and update database server variables.
7. Rename CatConvert.txt to CatConvert.php and run.
8. Check if it works and reply to this email.

You can even upgrade from UTW by using the import wizard then running this.
You _may_ choose to delete wp_categories and wp_post2cat if you are
satisfied with the result.

Computer Guru
NeoSmart Technologies
http://neosmart.net/blog/


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.6.1 (Build 1012)
Charset: us-ascii

wj8DBQFGhVj93SICh4XKUt0RAv5yAKDRJR+WGmlsG11Vcas08N+AvprksQCg7BZG
OYyNiZIFE7d62uRex9ma3Lk=
=kPpS
-----END PGP SIGNATURE-----


More information about the wp-hackers mailing list