• Resolved Richard-B

    (@richard-b)


    Hi, great addition to ACF, thank you πŸ™‚

    I am having a few problems outputting the data object. Using the following code I am having some luck but getting an error:

    $data = get_field('video_field');
    echo $data->thumbnail_url;

    Error:

    Warning: Missing argument 2 for acf_field_oembed::get_oembed_object(), called in /wp-content/plugins/acf-oembed-field-master/oembed-v4.php on line 233 and defined in /wp-content/plugins/acf-oembed-field-master/oembed-v4.php on line 250

    I know there should be a second parameter in the get_field() but for the life of me I cannot figure it out πŸ™

    Thanks!

    https://wordpress.org/plugins/advanced-custom-fields-oembed-field/

Viewing 1 replies (of 1 total)
  • Plugin Author edwardtownend

    (@edwardtownend)

    Hi Richard, it’s a bit of a bug – The second parameter is expected to be an array of arguments such as:

    array('width' => 200, 'height' => 150 )

    That said, it should have been optional so that will be fixed in the next update, today.

    Thanks for letting me know.

Viewing 1 replies (of 1 total)
  • The topic ‘Data Object Output’ is closed to new replies.