1. 首页
  2. WordPress 函数手册

get_archives()

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

检索存档列表。
Retrieves a list of archives.

目录锚点:#说明#参数#返回#源码


说明(Description)

另见函数 wp_get_archives()


参数(Parameters)

参数 类型 必填 说明
$type (string) 可选
$limit (string) 可选
$format (string) 可选
$before (string) 可选
$after (string) 可选
$show_post_count (bool) 可选

返回(Return)

(string|null)


源码(Source)


更新版本 源码位置 使用 被使用
2.1.0 wp-includes/deprecated.php:767 0 2

get_archives() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_archives/