WordPress.org

Ready to get started?Download WordPress

Forums

How to set category parent by SQL (1 post)

  1. prom85
    Member
    Posted 6 months 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?

Reply

You must log in to post.

About this Topic