it seems that I cannot update multiple rows to change the post_type of posts having a specific tag.
I follow different method, even if it seems the good one is this one :
global $wpdb; $result = $wpdb->query("UPDATE $wpdb->posts SET $wpdb->posts.post_type = 'editorial_post' WHERE $wpdb->posts.post_type = post AND $wpdb->postmeta.meta_key = 'tag' AND $wpdb->postmeta.meta_value = 'editorial'"); var_dump($result);
Var_dump() always returns a null result. Can someone tell me where I'm wrong ? Thank you very much.