Tag Cloud Widget Not Working (2 posts)

  1. mjmitche
    Posted 5 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. Michael
    Forum Moderator
    Posted 5 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:

    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