wp_generate_tag_cloud

Sponsored Link

タグクラウドを作るHTML文字列を返します。

Sponsored Link

Returns an HTML string that makes a tag cloud.

wp_generate_tag_cloudのテンプレートタグ使用方法

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

注釈

  • Called by wp_tag_cloud()
  • Uses get_tags()

変更ログ

Since: 2.3.0

ソースファイル

wp_generate_tag_cloud()は、wp-includes/category-template.php内に位置しています。

wp_generate_tag_cloud() is located in wp-includes/category-template.php.

関連テンプレートタグ

the_tags, tag_description, single_tag_title, wp_tag_cloud, wp_generate_tag_cloud, get_tags, get_the_tags, get_the_tag_list, get_tag_link

Sponsored Link