Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

Untitled

By: srikat on Mar 23rd, 2013  |  syntax: PHP  |  size: 0.32 KB  |  views: 59  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.         $start_time = get_field('start_time');
  3.  
  4.         $end_time = get_field('end_time');
  5.  
  6.         if ( !empty($start_time) ) { echo '<div class="entry-meta start-time"><span>' . $start_time . '&nbsp;</span></div>' ;}
  7.  
  8.         if ( !empty($end_time) ) { echo '<div class="entry-meta end-time"><span>-&nbsp;' . $end_time . '</span></div>' ;}
  9. ?>
clone this paste RAW Paste Data