Skip to content

Instantly share code, notes, and snippets.

@jonschr jonschr/plugin.php
Last active Feb 1, 2019

Embed
What would you like to do?
Pulling in video URLs from an ACF addon plugin
//* Get the background image information (if the video is local)
$video_mp4 = wp_get_attachment_url( get_post_meta( $id, $context_prefix . $count . '_video_mp4', true ) );
$video_webm = wp_get_attachment_url( get_post_meta( $id, $context_prefix . $count . '_video_webm', true ) );
$image_fallback = wp_get_attachment_url( get_post_meta( $id, $context_prefix . $count . '_image_fallback', true ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.