JiveDig
5/11/2013 - 3:39 AM

Embed a video using Advanced Custom Fields and url in text field.

Embed a video using Advanced Custom Fields and url in text field.

/** Embeda video from url */
add_action( 'genesis_post_content', 'executive_do_video_single' );
function executive_do_video_single() {
	$value = get_field( "video_url" );
	if( $value ) {
		echo '<p>';
		echo wp_oembed_get ( $value );
		echo '</p>';
	}
}