WordPress.org

Forums

Tag Clouds (2 posts)

  1. pranav034
    Member
    Posted 3 years ago #

    Hi ,

    Tag clound the_tag() functions is having many attributes but when we add it using widget we don't see these attributes why ?

    is there any way to set the attributes inside function.php file ?

    Thanks
    Pranav

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    a filter for the tag cloud widget args;

    example:

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

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

    or use one of the 'configurable tag cloud' plugin widgets: http://wordpress.org/extend/plugins/search.php?q=configurable+tag+cloud

Topic Closed

This topic has been closed to new replies.

About this Topic