Title: Data Object Output
Last modified: August 22, 2016

---

# Data Object Output

 *  Resolved [Richard B](https://wordpress.org/support/users/richard-b/)
 * (@richard-b)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/data-object-output/)
 * 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/](https://wordpress.org/plugins/advanced-custom-fields-oembed-field/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [edwardtownend](https://wordpress.org/support/users/edwardtownend/)
 * (@edwardtownend)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/data-object-output/#post-5205776)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-custom-fields-oembed-field.
   svg)
 * [Advanced Custom Fields: oEmbed Field](https://wordpress.org/plugins/advanced-custom-fields-oembed-field/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields-oembed-field/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields-oembed-field/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields-oembed-field/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields-oembed-field/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields-oembed-field/reviews/)

## Tags

 * [ACF](https://wordpress.org/support/topic-tag/acf/)
 * [oEmbed](https://wordpress.org/support/topic-tag/oembed/)

 * 1 reply
 * 2 participants
 * Last reply from: [edwardtownend](https://wordpress.org/support/users/edwardtownend/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/data-object-output/#post-5205776)
 * Status: resolved