get_archives
函数
      get_archives ( $type = '', $limit = '', $format = 'html', $before = '', $after = '', $show_post_count = false )    - 参数
- 
- 
                (string)
 $type- Required: 否
- Default: (empty)
 
- 
                (string)
 $limit- Required: 否
- Default: (empty)
 
- 
                (string)
 $format- Required: 否
- Default: ‘html’
 
- 
                (string)
 $before- Required: 否
- Default: (empty)
 
- 
                (string)
 $after- Required: 否
- Default: (empty)
 
- 
                (bool)
 $show_post_count- Required: 否
- Default: false
 
 
- 
                (string)
- 返回值
- 
- (string|null)
 
- 相关
- 
- wp_get_archives()
 
- 定义位置
- 
- 
                                  wp-includes/deprecated.php
 , line 785
 
- 
                                  wp-includes/deprecated.php
- 引入
- 0.71
- 弃用
- 2.1.0
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);
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
 
      