Retrieves a list of archives.
$typestringoptional
Default:''
$limitstringoptional
Default:''
$formatstringoptional
Default:'html'
$beforestringoptional
Default:''
$afterstringoptional
Default:''
$show_post_countbooloptional
Default:false
function get_archives($type='', $limit='', $format='html', $before = '', $after = '', $show_post_count = false) {
_deprecated_function( __FUNCTION__, '2.1.0', 'wp_get_archives()' );
$args = compact('type', 'limit', 'format', 'before', 'after', 'show_post_count');
return wp_get_archives($args);
}
| Version | Description |
|---|---|
| 2.1.0 | Use wp_get_archives() |
| 0.71 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_archives