1

is there a way to remove the category from the database?

I just moving my old wordpress blog (that has the category in url), to new domain (without category).

I change everything except the category. Even i don't know where it is stored in database :(

Update

Problem is resolved, I added the answer below so that it will help to others.

3
  • are you asking to remove category from url? – ahmetlutfu Apr 27 '14 at 11:42
  • yes, but from the database. I want to complete remove the category – jogesh_pi Apr 27 '14 at 11:48
  • From url use "no category base" plugin.i do not know how to remove from database. – ahmetlutfu Apr 27 '14 at 12:04
3

It is done through the following query:

delete from `wp_terms` where `term_id` in ( SELECT `term_id`
    FROM `wp_term_taxonomy`
    WHERE `taxonomy` = 'category' ) and `term_id` not like 1

This query deleted all the category except the default. Hope this helps to the others.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.