Home » Labs » WordPress get_archives function usage  

WordPress get_archives function usage


Filed under Labs

WordPress ‘get_archives’ function is used to display archives list on date wise. It can be include annoyware in a template.

Function Usage

 
<?php
          php wp_get_archives( $args );
?>

Default Usage

 
<?php $args = array(
	'type'            => 'monthly',
	'limit'           => '',
	'format'          => 'html', 
	'before'          => '',
	'after'           => '',
	'show_post_count' => false,
	'echo'            => 1,
	'order'           => 'DESC'
); ?>

Posts you may like: