Skip to content

Instantly share code, notes, and snippets.

@lschatzkin
Created January 28, 2016 18:43
Show Gist options
  • Save lschatzkin/a7e734363ff82d1d5995 to your computer and use it in GitHub Desktop.
Save lschatzkin/a7e734363ff82d1d5995 to your computer and use it in GitHub Desktop.
Embed vimeo via ACF using wp_oembed_get; custom field just holds id#
<?php
$video = get_post_meta($post->ID, "video_id", true);
while ( $video_query->have_posts() ) :
$video_query->the_post();
echo wp_oembed_get( 'https://vimeo.com/' . $video );
endwhile;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment