If your website has multiple tags, you probably saw that it looks ugly and messy, or maybe you don’t have enough tags displayed as you would’ve wished. So you want to show more or less the number of tags rather than removing the widget, right?
Adding these simple lines of code on functions.php will do the trick:
//Register tag cloud filter callback add_filter('widget_tag_cloud_args', 'tag_widget_limit'); //Limit the number of tags inside the widget and Check if the taxonomy option inside the widget is set to tags function tag_widget_limit($args){ if(isset($args['taxonomy']) && $args['taxonomy'] == 'post_tag'){ $args['number'] =10; } return $args; } //END //