RE: How to get monthly archive posts in wordpress?

How to get monthly archive posts in wordpress?

dip Team Leader Asked on March 4, 2017 in WORDPRESS.
Add Comment
2 Answers
<?php $args = array( 'type' => 'monthly', 'limit' => '', 'format' => 'html', 'before' => '', 'after' => '', 'show_post_count' => false, 'echo' => 1, 'order' => 'DESC', 'post_type' => 'post' ); wp_get_archives( $args ); ?>
The type of archive list to display: 1. yearly 2. monthly - Default 3. daily 4. weekly 5. postbypost (posts ordered by post date) 6. alpha (same as postbypost but posts are ordered by post title)
Team Leader Answered on March 6, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.