-
-
Save LinzardMac/5536120 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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