Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

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

1 Answer 1

up vote 0 down vote accepted

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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