Replace something in Post_meta SQL Table
-
Hey
i want to replace a word in the main Content of an Site. But because of the Sitebuilder Plugin the Content is Stored in many Arrays in the Post_meta “panels_data”. So i tried to replace the Words in the SQL rather than in the Arrays.
I tried the following but nothing happened an i dont get an error message:
The Variable $new_post_id is the ID from the Post i want to change.$query = “UPDATE wp_postmeta WHERE post_id = “.$new_post_id.” SET panels_data = REPLACE (panels_data,’NAME1′,’NAME2′)”;
$wpdb->query($query);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Replace something in Post_meta SQL Table’ is closed to new replies.