Display section header above video

This commit is contained in:
Brian Miyaji
2014-10-21 02:31:24 +11:00
parent f521ce7306
commit 5489375aa2

View File

@@ -15,7 +15,8 @@ if ( ! isset( $id ) )
$video_url = get_post_meta( $id, 'sp_video', true );
if ( $video_url ):
?>
<div class="sp-event-video">
<div class="sp-template sp-template-event-video sp-event-video">
<h4 class="sp-table-caption"><?php _e( 'Video', 'sportspress' ); ?></h4>
<?php
global $wp_embed;
echo $wp_embed->autoembed( $video_url );