wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_archives › WordPress Function

Since0.71
已弃用2.1.0
get_archives ( $type = '', $limit = '', $format = 'html', $before = '', $after = '', $show_post_count = false )
参数: (6)
  • (string) $type
    Required: No
    默认: (empty)
  • (string) $limit
    Required: No
    默认: (empty)
  • (string) $format
    Required: No
    默认: 'html'
  • (string) $before
    Required: No
    默认: (empty)
  • (string) $after
    Required: No
    默认: (empty)
  • (bool) $show_post_count
    Required: No
    默认: false
查看:
返回:
  • (string|null)
定义在:
文档:

Retrieves a list of archives.



源码

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