Skip to content

Instantly share code, notes, and snippets.

@LinzardMac
Forked from anonymous/gist:5536113
Created May 7, 2013 21:06
Show Gist options
  • Save LinzardMac/5536120 to your computer and use it in GitHub Desktop.
Save LinzardMac/5536120 to your computer and use it in GitHub Desktop.
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post();?>
<?php $files = get_post_meta($post->ID, 'file_upload', true);
$video_source = get_post_meta($post->ID, 'video_source', true);
?>
<div class="entry">
<h1><?php the_title() ?></h1>
<?php the_content()?>
<?php if($files != '') { ?>
<?php
var_dump($files);
foreach ($files as $file) {
echo $file;}
}?>
<?php if(video_source != '') { ?>
<?php
echo $video_source;
}?>
</div>
<?php endwhile ?>
<?php endif ?>
</div><!-- #content -->
</div><!-- #primary -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment