search ]

Style and Customize the Tag Cloud in WordPress

To change the appearance of the tag cloud, use the following snippet. A full reference of the options is available at this link:

// Tag cloud custom
function style_tags($args) {
    $args = array(
         'largest'    => '10',
         'smallest'   => '10',
         'format'     => 'list',
         );
    return $args;
}
add_filter('widget_tag_cloud_args', 'style_tags');

For more on tags and taxonomies, see Taxonomies in WordPress.

Join the Discussion
0 Comments  ]

Leave a Comment

To add code, use the buttons below. For instance, click the PHP button to insert PHP code within the shortcode. If you notice any typos, please let us know!

Savvy WordPress Development official logo