Forums

How to modify Tag Cloud? (3 posts)

  1. littletrooper
    Member
    Posted 5 months ago #

    I made some changes to the widgets.php in wp-includes in WordPress before to specify the number of tags I wanted in my tag cloud. I also specified several tags that I wanted to exclude from the tag cloud.

    After the update, the changes I made are gone and I can't find the same lines of the function in widgets.php. Please help. Thanks!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 5 months ago #

    Never edit core files! Try looking for a suitable tag cloud plugin instead.

  3. alchymyth
    The Sweeper
    Posted 5 months ago #

    or try some code like this in 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;
    }

    http://codex.wordpress.org/Function_Reference/wp_tag_cloud

Reply

You must log in to post.

About this Topic

Tags