Last active
May 13, 2016 18:58
-
-
Save halgatewood/a4aa1d1d9fc6dea4b68e95bb012d46c1 to your computer and use it in GitHub Desktop.
How to use the ACF Vimeo Field to return Data from the Video
This file contains hidden or 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 $vimeo_video = get_field('vimeo_id'); ?> | |
| <img src="<?php echo $vimeo_video->thumbnail_medium; ?>"> | |
| <h1><?php echo $vimeo_video->title; ?></h1> | |
| <p><?php echo $vimeo_video->description; ?> | <?php echo $vimeo_video->length; ?></p> | |
| <iframe src="https://player.vimeo.com/video/<?php echo $vimeo_video->id; ?>" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment