首页 WordPress函数大全 get_archives()

get_archives()

2020-05-01 / 5491阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

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

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

Retrieves a list of archives.

描述

See also See also

  • wp_get_archives()

Top ↑

参数

$type

(string)
(Optional)

Default value: ''

$limit

(string)
(Optional)

Default value: ''

$format

(string)
(Optional)

Default value: 'html'

$before

(string)
(Optional)

Default value: ''

$after

(string)
(Optional)

Default value: ''

$show_post_count

(bool)
(Optional)

Default value: false

返回

(string|null)

大家谈论
    我的见解