Support » Fixing WordPress » How to set category parent by SQL

  • what I do is following:

    UPDATE wp_term_taxonomy SET parent = ‘1’ WHERE wp_term_taxonomy.term_taxonomy_id = 2;

    But this leads to the disappearance of the category in the backend…

    If I change the parent through the backend, it seems to set the exact same value and it works. So there may be a second place that I have to update? How can I change the parent of a category?

  • The topic ‘How to set category parent by SQL’ is closed to new replies.