Created
July 23, 2013 05:12
-
-
Save jayseventwo/6060002 to your computer and use it in GitHub Desktop.
In wordPress, when more than 1 post is added per day, the date only shows for the first post. This fixes that issue. Add to content.php
This file contains 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
/* --- replace this --*/ | |
<time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_date(); ?></time> | |
/* -- with this */ | |
<time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time(get_option('date_format')); ?></time> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment