<?php
// get post ID (instead of block ID)
function maybe_editor_post_id() {
if ( is_admin() && function_exists( 'acf_maybe_get_POST' ) ) :
return intval( acf_maybe_get_POST( 'post_id' ) );
else :
global $post;
return $post->ID;
endif;
}
<?php
// get post ID (instead of block ID)
function maybe_editor_post_id() {
if ( is_admin() && function_exists( 'acf_maybe_get_POST' ) ) :
return intval( acf_maybe_get_POST( 'post_id' ) );
else :
global $post;
return $post->ID;
endif;
}