模板标签-wp_generate_tag_cloud()

0条评论

说明

该标签返回一个可生成标签云的HTML字符串。

用法

<?php wp_generate_tag_cloud( $tags, $args ); ?>

默认用法

<?php $args = array(
'smallest' => 8,
'largest' => 22,
'unit' => 'pt',
'number' => 0,
'format' => 'flat',
'separator' => '\n',
'orderby' => 'name',
'order' => 'ASC',
'topic_count_text_callback' => 'default_topic_count_text',
'topic_count_scale_callback' => 'default_topic_count_scale',
'filter' => 1 ); ?>

参数

示例

注释

历史记录

  • 始见于WordPress 2.3.0版本

源文件

wp_generate_tag_cloud()位于wp-includes/category-template.php中。

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.