I need to find rows with term_taxonomy_id == 4
and add new term relationships, kind of like that:
http://picpaste.com/28dbd65ee0-hRbWftsI.jpg
On the screenshot the post with object_id == 2108
has term relationships 57, 60, 62 and 64 â and I need an every post linked with term_taxonomy_id == 4
has the same relationships too… I haven’t worked with SQL much, so I got stuck with that. Which SQL commands should I use (except INSERT INTO wp_term_relationships
, I got it).
Did it myself: