Joho the Blog
|
|
|
April 09, 2007
I've googled around but can't find a way of putting a date divider between posts using WordPress. That is, I'd like to put in a divider demarking one day's posts from anothers, as I do on this blog using MovableType . I'd also like to do it at EverythingIsMiscellaneous.com, which uses WordPress. (I posted about it in the support forum here.) Is there really no baked-in way to do that? [Tags: wordpress] Posted
by D. Weinberger at April 9, 2007 10:14 AM
|
Comments
The the_date function records the date of the current post every time you call it, and prints nothing if it hasn't changed from the last one.
The function itself is defined in wp-includes/template-functions-general.php.
Posted by: Adam Fields | April 9, 2007 02:47 PM
Usage: <?php the_date('','<h2>','</h2>'); ?>
Posted by: Adam Fields | April 9, 2007 02:49 PM
Adam, thank you! So easy! I will post this in the forums where I've seen this question go unanswered for months.
Posted by: David Weinberger | April 9, 2007 08:07 PM