August 13, 2005

Stupid Question

I know there's a way to do this -- I read it in the manual, but now I can't find it.

Simply -- I want to have my monthly archives in ascending order -- starting witht he first of the month and going to the end, rather than the reverse. What part of the template do I need to change to do that?

Posted by Warren Kelly at August 13, 2005 05:53 PM | TrackBack
Comments
#1

In your Date-based Archive template, your going to want to find the section that look slike this:

 <div class="blog">
 <MTEntries>
 <$MTEntryTrackbackData$>

 <MTDateHeader>
 <h2 class="date"><$MTEntryDate format="%x"$></h2>
 </MTDateHeader> and so on...

You need to add a sort attribute to the MTEntries tag. To do this, change the line that reads:

 <MTEntries>

so that instead it reads:

 <MTEntries sort_order="ascend">

Then save the template and rebuild your archives.

Paul

Posted by Light & Dark at August 13, 2005 09:55 PM
#2

Thanks, Paul!

Posted by Warren at August 13, 2005 11:38 PM
Live Comment Preview
Post a comment









Remember personal info?