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
(@czaker)
Hi,
This method displays only link to video, not embeded video on page.
Any other ideas?
Thanks
Using the following code should work:
$content = rwmb_meta( 'field_id', array('type'=> 'oembed') );
echo $content;
Did my code example work for you?
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
(@czaker)
Yeah it doesn’t work. It displays just straight link you typed in input (backend), not embeded video.