Revisions
-
LinzardMac revised this gist
May 7, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ <?php var_dump($files); foreach ($files as $file) { echo $file;} }?> <?php if(video_source != '') { ?> <?php -
There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ <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->guid;} }?> <?php if(video_source != '') { ?> <?php echo $video_source; }?> </div> <?php endwhile ?> <?php endif ?> </div><!-- #content --> </div><!-- #primary -->