A WordPress-centric search engine for devs and theme authors



is_new_day ›

Since0.71
Deprecatedn/a
is_new_day ( No parameters )
Returns:
  • (int) 1 when new day, 0 if not a new day.
Defined at:
Codex:

Whether the publish date of the current post in the loop is different from the publish date of the previous post in the loop.



Source

function is_new_day() {
	global $currentday, $previousday;
	if ( $currentday != $previousday ) {
		return 1;
	} else {
		return 0;
	}
}