Okay here is some php code that displays posts grouped by the_date for use in a sidebar:
<?php if (have_posts()) :
while (have_posts()) : the_post();
echo the_date('F j','<li>','</li>');
echo "<li><a href=\"";
echo " by ";
I want to find a way to nest the posts that appear for each use of the_date in a new
<ul>tag but I can’t think through it. Can anybody assist? Thanks!!
See it in use here: http://wp.sacrag.com on the top left (recent posts)
- The topic ‘nested list of posts using the_date’ is closed to new replies.