Skip to content

Instantly share code, notes, and snippets.

@fchouquet
Forked from farinspace/videos_projects
Created December 18, 2011 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fchouquet/1493992 to your computer and use it in GitHub Desktop.
Save fchouquet/1493992 to your computer and use it in GitHub Desktop.
Can't get videos working
<?php global $video_metabox; $video_metabox->the_meta(); ?>
<?php if ( $video_metabox->have_value( 'vids' ) ) { ?>
<ul class="project_videos">
<?php while( $video_metabox->have_fields('vids') ) { ?>
<?php do_shortcode( '[embed]' . $video_metabox->the_value( 'videourl' ) . '[/embed]' ); ?>
<?php } ?>
</ul>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment