function same_date() { global $previousday; $previousday = ''; } add_action( 'the_post', 'same_date' );