WordPress.org

Support

Support » Plugins and Hacks » Tag Cloud Widget Not Working

Tag Cloud Widget Not Working

  • The tag cloud has stopped listing new tags I’m adding. It’s got about 45 tags in it, but I keep adding more in my posts. Is there a limit set somewhere? can I change it?

Viewing 1 replies (of 1 total)
  • Michael
    Forum Moderator

    @alchymyth

    45 is about the default limit; you can change it by adding a few lines of code into functions.php of your theme:

    add_filter('widget_tag_cloud_args','set_number_tags');
    function set_number_tags($args) {
    $args = array('number'    => 100, 'largest'    => 25);
    return $args;
    }

    you only need to use:

    $args = array('number'    => 100);

    the example is to show how to add multiple arguments;
    for a full list of args, see: http://codex.wordpress.org/Function_Reference/wp_tag_cloud

Viewing 1 replies (of 1 total)
  • The topic ‘Tag Cloud Widget Not Working’ is closed to new replies.