get_archives()
Deprecated since 2.1.0. It is no longer supported and may be removed in future releases. Use wp_get_archives() instead.
Retrieves a list of archives.
No Hooks.
Returns
String|null.
Usage
get_archives( $type, $limit, $format, $before, $after, $show_post_count );
- $type(string)
- .
Default: '' - $limit(string)
- .
Default: '' - $format(string)
- .
Default: 'html' - $before(string)
- .
Default: '' - $after(string)
- .
Default: '' - $show_post_count(true|false)
- .
Default: false
Notes
- See: wp_get_archives()
Changelog
| Since 0.71 | Introduced. |
| Deprecated since 2.1.0 | Use wp_get_archives() |
get_archives() get archives code WP 6.9
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);
}