How to get all archive posts in WordPress?

How to get all archive posts in WordPress?

Team Leader Asked on March 4, 2017 in WORDPRESS.
Add Comment
1 Answer(s)

 

 
<?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 ); ?>

Team Leader Answered on March 5, 2017.
Add Comment

Your Answer

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