sorry, but I have not yet received a convincing answer
I need tu save custom fields in POST_CONTENT.
With my code works. Just i need to make the page refresh after posting the post.
The question is, how can I tell WP to save the custom field in POST_CONTENT when i press publish in wp editor?
<?php
if ( get_field('descrizione') ) {
$postid = get_queried_object_id();
$my_post = array(
'ID' => $postid,
'post_content' => get_field('descrizione'),
);
wp_update_post( $my_post ); } ?>
duplicate of https://support.advancedcustomfields.com/forums/topic/replace-the_content-to-acf/
Put the code in the OP of that topic inside of an acf/save_post filter https://www.advancedcustomfields.com/resources/acf-save_post/
Get the custom field from ACF and update the post content.
You’ll probably also need to built the actual HTML required for displaying the content on as well like you would in the template file.