I try to replace post's
the_content with value from ACF field
article_text. I managed to achieve it with following method:
$postid = get_queried_object_id(); $my_post = array( 'ID' => $postid, 'post_content' => get_field('article_text'), ); wp_update_post( $my_post ); the_content();
But I have a small issue with it: when I create post,
the_content doesn't automatically gets the value from ACF
article_text. I have to refresh the browser couple times in order to see that change. When I preview the post without publishing, I cannot see
the_content at all.
My question - is there a more efficient way to do it to see the content straight away?
The reason why I want to display
the_content instead of
article_text is because of several not-ACF-friendly plugins.