WordPress.org

Forums

How to set category parent by SQL (1 post)

  1. prom85
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic