Created
July 7, 2016 15:43
-
-
Save stevenspads/1c024a0835fc29b71cbc2899aeaa294b to your computer and use it in GitHub Desktop.
List monthly archives using Bootstrap styling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class='list-group'> | |
<?php | |
$args = array( | |
'type' => 'monthly', | |
'limit' => '', | |
'format' => 'custom', | |
'before' => '<li class="list-group-item">', | |
'after' => '</li>', | |
'show_post_count' => false, | |
'echo' => 1, | |
'order' => 'DESC', | |
'post_type' => 'post' | |
); | |
wp_get_archives( $args ); | |
?> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment