wp_get_archives should allow for Ascending and Descending ordering
|Reported by:||tar.gz||Owned by:||nacin|
The wp_get_archives function offers various options for listing content by year, month, week, day, postname.
However, it offers only one sorting direction: from the newest to the oldest. This makes certainly sense in the classical WP use case: a blog. But since WP is now a full-featured CMS, it seems logical that the choice of the sorting order should be left to the user.
It should be possible to define this direction by using order=ASC / order=DESC.
If the option gets introduced, but the default left at the current state (order=DESC), the change would not affect existing sites while improving the overall functionality.
This feature has been requested by several users over the years:
Some people try to solve the problem by editing the core files:
Change History (14)
- Keywords commit added
- Milestone changed from Awaiting Review to Future Release
- Milestone changed from Future Release to 3.5
- Priority changed from normal to low