Upon further research, the problem originates with
class-acf-field-oembed.php – function
The Group Field key is passed through to
acf_get_field which returns
If you comment out:
// load field $field = acf_get_field( $args['field_key'] ); if( !$field ) return false; // prepare field to correct width and height $field = $this->prepare_field($field);
and put in a temp array:
$field = [ 'width' => 300, 'height' => 280 ];
Then the oEmbed in a Group Field works correctly.
So the issue is with
acf_get_field not being able to handle a Group Field key.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!