Quantcast
Channel: WPRecipes
Viewing all articles
Browse latest Browse all 121

SQL query to turn categories into tags (and vice versa)

$
0
0

Just run the following query on your WordPress database, and all categories will be turned into tags. Don't forget to replace the table prefix wp_ if your database is using another prefix.
And of course, do not forget to make a backup of your database before running the query!

UPDATE wp_term_taxonomy SET taxonomy='post_tag', parent=0 WHERE taxonomy='category';

Thanks to Go WordPress for the tip!


Viewing all articles
Browse latest Browse all 121

Latest Images

Trending Articles



Latest Images