Function to change meta value in database for each post
You’ll only need to run it once, but this should get all your posts, and then loop through them and update the meta. add_action(‘admin_init’, ‘deleteCommaDB’); function deleteCommaDB(){ // The Query $args = array ( ‘posts_per_page’ => -1 ); $the_query = new WP_Query( $args ); // The Loop while ( $the_query->have_posts() ) : $the_query->the_post(); $price_key = … Read more