WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp generate tag cloud

Description

Returns an HTML string that makes a tag cloud.

Usage

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

Default Usage

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

Parameters

Examples

Notes

Changelog

  • Since: 2.3.0

Source File

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

Related

Tags: get_tag(), get_tag_link(), get_tags(), get_the_tag_list(), get_the_tags(), is_tag(), the_tags(), single_tag_title(), tag_description(), wp_generate_tag_cloud(), wp_tag_cloud()

See also index of Function Reference and index of Template Tags.