A WordPress-centric search engine for devs and theme authors



get_archives ›

Since0.71
Deprecated2.1.0
get_archives ( $type = '', $limit = '', $format = 'html', $before = '', $after = '', $show_post_count = false )
Parameters: (6)
  • (string) $type
    Required: No
    Default: (empty)
  • (string) $limit
    Required: No
    Default: (empty)
  • (string) $format
    Required: No
    Default: 'html'
  • (string) $before
    Required: No
    Default: (empty)
  • (string) $after
    Required: No
    Default: (empty)
  • (bool) $show_post_count
    Required: No
    Default: false
See:
Returns:
  • (string|null)
Defined at:
Codex:

Retrieves a list of archives.



Source

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