Skip to content

Instantly share code, notes, and snippets.

@media317
Created October 27, 2013 22:28
Show Gist options
  • Save media317/7188664 to your computer and use it in GitHub Desktop.
Save media317/7188664 to your computer and use it in GitHub Desktop.
Change UNIX timestamp to M/D/Y
add_action( 'genesis_before_entry_content', 'mmi_sing_project_top');
function mmi_sing_project_top() {
global $post;
$begindate = genesis_get_custom_field('startdate');
$enddate = genesis_get_custom_field('finishdate');
echo '<div class="sing-project">';
. . . .
echo '<h5>When:</h5> ';
echo '<p>';
echo date('m/d/Y', strtotime($begindate));
echo ' to ';
echo date('m/d/Y', strtotime($enddate));
echo '</p>';
echo '</div>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment