Wordpress users have thousands of themes to choose from. We hunt out the best of the best free and premium themes. You will find best of the best 2 columns, 3 columns, adsense ready, widget ready,
XHTML validated themes. Best themes for Wordpress powered blogs. Download quality and professionally designed Wordpress templates for free at BestWpThemez.com.
By default, the archives are set to descending order. But you can change it to ascending order using below mentioned steps:
1) Go to your wordpress directory.
2) Open the file wp-includes/general-template.php.
3) Look for the function wp_get_archives. In this function, you will find this code:
if ( ‘monthly’ == $type ) {
$query = “SELECT DISTINCT YEAR(post_date) AS ‘year’, MONTH(post_date) AS ‘month’, count(ID) as posts FROM $wpdb->posts $join $where GROUP BY YEAR(post_date), MONTH(post_date) ORDER BY post_date DESC $limit”;
4) Change the value DESC to ASC and save the template.
5) Your archives will be displayed in ascending order now.
6) If you are using yearly archives, please select the appropriate code from the template.
Ryan S.
Popularity: 5%
This entry was posted
on Wednesday, December 31st, 2008 at 12:48 pm and is filed under WordPress KB .
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.