Skip to content

Instantly share code, notes, and snippets.

@fchouquet
fchouquet / videos_projects
Created December 18, 2011 17:30 — forked from farinspace/videos_projects
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') ) { ?>
// This Works
@fchouquet
fchouquet / videos_projects
Created December 18, 2011 17:29 — forked from farinspace/videos_projects
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>