Please Is there any way to run an SQL code to delete all post tags in wordpress except categories via database.
I want to run an sql code that will delete all my tags in wp, but not deleting my post category and posts assigned to those category.
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityPlease Is there any way to run an SQL code to delete all post tags in wordpress except categories via database.
I want to run an sql code that will delete all my tags in wp, but not deleting my post category and posts assigned to those category.
delete from `wp_terms` where `term_id` in ( SELECT `term_id`
FROM `wp_term_taxonomy`
WHERE `taxonomy` = 'post_tag' ) and `term_id` not like 1
The above Code was exactly what I was looking for.