get_archives( string $type = , string $limit = , string $format = ‘html’, string $before = , string $after = , bool $show_post_count = false ): string|null

This function has been deprecated. Use wp_get_archives() instead.

Retrieves a list of archives.

Description

See also

Parameters

$typestringoptional

Default:''

$limitstringoptional

Default:''

$formatstringoptional

Default:'html'

$beforestringoptional

Default:''

$afterstringoptional

Default:''

$show_post_countbooloptional

Default:false

Return

string|null

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

Changelog

VersionDescription
2.1.0Use wp_get_archives()
0.71Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.