Update the value of every page’s content editor with the value of an Advanced Custom Field on that page
Solution: Add this to functions.php and refresh admin once. Remove after. function process_post() { $my_posts = get_posts( array(‘post_type’ => ‘page’, ‘posts_per_page’ => -1 ) ); foreach ( $my_posts as $my_post ) : $value = get_field(‘course_content’, $my_post->ID ); if($value): $update_post = array( ‘ID’ => $my_post->ID, ‘post_content’ => $value ); wp_update_post( $update_post ); endif; endforeach; } add_action( … Read more