Forum
perch_blog_date_archive_months - Reverse Month Listing Order
Hi guys,
I'm looking to reverse the order that the months are displayed in when using perch_blog_date_archive_months( );
.
I'm using basically the default months_month_link.html
template, I've just made a slight change (to remove the count) - see below:
<perch:before>
<ul>
</perch:before>
<li><a href="archive.php?year=<perch:blog id="postDateTime" format="Y" />&month=<perch:blog id="postDateTime" format="m" />"><perch:blog id="postDateTime" format="%B" /></a></li>
<perch:after>
</ul>
</perch:after>
Currently, it's listing months like so: 2017 - December - November
But I need to display it as: 2017 - November - December
Is there a way to do this?
Thanks, Harry
I don't think so. Being a blog, everything is sorted in reverse chronological order - that's one defining feature of a blog.
This is a timeline, but thanks for letting me know. I'll use JQuery to gain some control over the order.