WordPress.org

Ready to get started?Download WordPress

Forums

Tag Cloud Widget Not Working (2 posts)

  1. mjmitche
    Member
    Posted 2 years ago #

    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?

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags