A little WordPress cleanup

A nearly perfect WordPress distribution was disrupted by a loss of my ‘tags’ which affected the catagories on my blog. A reload of the wp_catagories table and contents, and then this MySQL script managed to put things right.

update wp_terms tt, wp_categories cc
set tt.name = cc.cat_name, tt.slug = cc.category_nicename
where tt.term_id = cc.cat_ID

4 comments on “A little WordPress cleanup

Comments are closed.