/* The default Date Format function in Serene WordPress Theme */
if ( ! function_exists( 'serene_post_meta_info' ) ) :
function serene_post_meta_info() { ?>
<div class="meta-date">
<div class="meta-date-wrap">
<?php
printf( '<span class="meta-post-date"><strong>%s.</strong>%s</span> <a href="%s"><div class="meta-comments-count"><span aria-hidden="true" class="icon_comment_alt"></span>%s</div></a>',
get_the_time( _x( 'M', 'post info month name', 'Serene' ) ),
get_the_time( _x( 'd', 'post info day', 'Serene' ) ),
esc_url( get_permalink() ),
sprintf( _n( '1', '%1$s', get_comments_number(), 'Serene'), number_format_i18n( get_comments_number() ) )
);
?>
</div>
</div>
<?php }
endif;
/* Modified Date Format function in Serene WordPress Theme. Show Year, Month and Day */
/* Example: 2013-11-04 (In PHP: Y-m-d) */
/* See PHP Time for usage: http://codex.wordpress.org/Formatting_Date_and_Time */
/* Replace the above code with the code below. */
if ( ! function_exists( 'serene_post_meta_info' ) ) :
function serene_post_meta_info() { ?>
<div class="meta-date">
<div class="meta-date-wrap">
<?php
printf( '<span class="meta-post-date">%s</span> <a href="%s"><div class="meta-comments-count"><span aria-hidden="true" class="icon_comment_alt"></span>%s</div></a>',
get_the_time( _x( 'Y-m-d', 'post info date name', 'Serene' ) ),
esc_url( get_permalink() ),
sprintf( _n( '1', '%1$s', get_comments_number(), 'Serene'), number_format_i18n( get_comments_number() ) )
);
?>
</div>
</div>
<?php }
endif;