Return to Snippet

Revision: 22031
at December 29, 2009 10:10 by daipratt


Initial Code
<?php
$date = the_date('F Y', '', '', FALSE);
if ($date){
	if ($temp != $date){
		echo "<h2 class=\"month-band\">" . $date . "</h2>";
	}
	$temp = $date;
}
?>

Initial URL
http://zoocha.com/blog/

Initial Description
Stick this inside the <?php> and you get the month group title shown only once for that date range. Sexy.

Initial Title
Month bands for wordpress posts

Initial Tags
wordpress

Initial Language
PHP