Support » Fixing WordPress » Oembed custom fields

  • Hi

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • jayo


    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. ]



    Forum Moderator

    Stop bumping!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Oembed custom fields’ is closed to new replies.