Created
December 10, 2012 14:52
-
-
Save roborourke/4250992 to your computer and use it in GitHub Desktop.
Turn off the date display hiding logic in WP if posts are on same day
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
<?php | |
/** | |
* Switch off is_new_day() date hiding logic | |
*/ | |
add_action( 'the_post', function( $post ) { | |
global $previousday; | |
$previousday = 0; | |
} ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment