Created
January 28, 2016 18:43
-
-
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#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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