Documentation:CLF Advanced WordPress Theme/wp tag cloud

From UBC Wiki
Jump to: navigation, search

Simple usage

{wp_tag_cloud}
  • replace above {} brackets with square [] ones

using attributes

{wp_tag_cloud smallest=8 largest=16}
  • replace above {} brackets with square [] ones

possible attributes and default

    'smallest'                  => 8, 
    'largest'                   => 22,
    'unit'                      => 'pt', 
    'number'                    => 45,  
    'format'                    => 'flat',
    'separator'                 => \"\n\",
    'orderby'                   => 'name', 
    'order'                     => 'ASC',
    'exclude'                   => null, 
    'include'                   => null, 
    'topic_count_text_callback' => default_topic_count_text,
    'link'                      => 'view', 
    'taxonomy'                  => 'post_tag', 

for more information see WordPress documentation