[wp-hackers] oembed with custom fields

Chris McCoy chris at lod.com
Sun Sep 30 02:52:47 UTC 2012

Is it possible to use oembed with custom fields?

Ive tried using wp_oembed_get with the custom field value, but nothing seems
to show.

$videourl = get_post_meta(get_the_ID(), 'video-link', true);
echo wp_oembed_get( $videourl);

video-link has the youtube url.

More information about the wp-hackers mailing list