• I’m trying to output all past posts in a sort of archive widget, and I’d like the resulting code to look something like this:

    <time datetime="2012">
    	    	<span>2012:</span>
    	    <ul>
    	    	<li><a href="#"><time datetime="2012-01">Jan</time></a></li>
    	    	<li><a href="#"><time datetime="2012-02">Feb</time></a></li>
    	    	<li><a href="#"><time datetime="2012-03">Mar</time></a></li>
    	    	<li><a href="#"><time datetime="2012-04">Apr</time></a></li>
    	    	<li><a href="#"><time datetime="2012-05">May</time></a></li>
    	    	<li><a href="#"><time datetime="2012-06">June</time></a></li>
    	    </ul>
    	    </time>

    Is there a good way to do this built in? Or any ideas on how I could structure a query to do this for each year?

    Thank you!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘HTML5 Archives’ is closed to new replies.