Title: Display oembed element (video)
Last modified: August 30, 2016

---

# Display oembed element (video)

 *  Resolved [czaker](https://wordpress.org/support/users/czaker/)
 * (@czaker)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/display-oembed-element-video/)
 * Hello,
    I have a quick question: **How display oembed element?** (In docs theres
   nothing about it)
 * Thanks
 * [https://wordpress.org/plugins/meta-box/](https://wordpress.org/plugins/meta-box/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Anh Tran](https://wordpress.org/support/users/rilwis/)
 * (@rilwis)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/display-oembed-element-video/#post-6658307)
 * You can display oembed element just by using `rwmb_meta` function, like this:
 *     ```
       $content = rwmb_meta( 'field_id' );
       echo $content;
       ```
   
 * where `field_id` is the field’s ID of oembed field.
 *  Thread Starter [czaker](https://wordpress.org/support/users/czaker/)
 * (@czaker)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/display-oembed-element-video/#post-6658318)
 * Hi,
 * This method displays only link to video, not embeded video on page.
    Any other
   ideas?
 * Thanks
 *  Plugin Contributor [Manny Fleurmond](https://wordpress.org/support/users/funkatronic/)
 * (@funkatronic)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/display-oembed-element-video/#post-6658359)
 * Using the following code should work:
 *     ```
       $content = rwmb_meta( 'field_id', array('type'=> 'oembed') );
       echo $content;
       ```
   
 *  Plugin Contributor [Manny Fleurmond](https://wordpress.org/support/users/funkatronic/)
 * (@funkatronic)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/display-oembed-element-video/#post-6658362)
 * Did my code example work for you?
 *  [Mark Puts](https://wordpress.org/support/users/mark-puts/)
 * (@mark-puts)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/display-oembed-element-video/#post-6658364)
 * I have the same issue, your code example doesn’t work.
    A var_dump results in`
   string(32) "<a href="http://Array">Array</a>"`
 *  Thread Starter [czaker](https://wordpress.org/support/users/czaker/)
 * (@czaker)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/display-oembed-element-video/#post-6658365)
 * Yeah it doesn’t work. It displays just straight link you typed in input (backend),
   not embeded video.
 *  [Mark Puts](https://wordpress.org/support/users/mark-puts/)
 * (@mark-puts)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/display-oembed-element-video/#post-6658366)
 * Made a fix, see Github: [https://github.com/rilwis/meta-box/compare/master…Maaark:patch-1](https://github.com/rilwis/meta-box/compare/master…Maaark:patch-1)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Display oembed element (video)’ is closed to new replies.

 * ![](https://ps.w.org/meta-box/assets/icon-128x128.png?rev=1100915)
 * [Meta Box](https://wordpress.org/plugins/meta-box/)
 * [Support Threads](https://wordpress.org/support/plugin/meta-box/)
 * [Active Topics](https://wordpress.org/support/plugin/meta-box/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/meta-box/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/meta-box/reviews/)

## Tags

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

 * 7 replies
 * 4 participants
 * Last reply from: [Mark Puts](https://wordpress.org/support/users/mark-puts/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/display-oembed-element-video/#post-6658366)
 * Status: resolved