Adding this snippet to the functions.php of your wordpress theme will limit the archives widget to display only 12 months. Replace the add_filter from the first snippet with the second add_filter bellow so this snippet will work for the dropdown archives widget.read more
Adding this snippet to the functions.php of your wordpress theme will display a beautifully
formated archives list of months separated by year. Don’t forget to place the second snippet within your wordpress theme in the location you want to display the archives list.