Month bands for wordpress posts


/ Published in: PHP
Save to your folder(s)

Stick this inside the


Copy this code and paste it in your HTML
  1. <?php
  2. $date = the_date('F Y', '', '', FALSE);
  3. if ($date){
  4. if ($temp != $date){
  5. echo "<h2 class=\"month-band\">" . $date . "</h2>";
  6. }
  7. $temp = $date;
  8. }
  9. ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.