Exclude tag from the WordPress tag cloud widget

Ever wanted to exclude a tag from the tag cloud but there’s no option in the widget? Well in wp-includes/widgets/class-wp-widget-tag-cloud.php there is a filter called widget_tag_cloud_args you can use. <?php add_filter( ‘widget_tag_cloud_args’, ‘jmw_exclude_tag_from_tag_cloud’); function jmw_exclude_tag_from_tag_cloud( $args ) { $args[ ‘exclude’ ] = ’36’; // ID of the tag. If multiple tags use comma delimited sting ‘2,5,36’ return … Continue reading Exclude tag from the WordPress tag cloud widget