Oembed + custom fields (3 posts)

  1. mosabua
    Posted 3 years ago #


    I got a wysiwyg-editor custom field (tinymce) called video containing text, links AND youtube url but the automatic oembed doesn't work.

    Here is my simple, stripped down code (if empty etc is coming)

    $videos= get_post_meta($post->ID, 'videos', true);
    echo apply_filters( 'the_content', $videos);

    html tags are nicely parsed but the oembedding doesn't work - I just get the youtube link....

    thanks for any help

  2. jayo
    Posted 3 years ago #

    Anyone? Im trying to get this to work too

    Tried using this, but doesn't work.

    <?php echo wp_oembed_get( get_post_meta($post->ID, 'customfield', true) ); ?>

    [ Don't bump again. ]

  3. esmi
    Forum Moderator
    Posted 3 years ago #

    Stop bumping!

Topic Closed

This topic has been closed to new replies.

About this Topic