Removing the Uncategorized Tag

Figured out how to remove Uncategorized from the Tag Cloud widget, editing wp_tag_cloud function in category-template.php (the same function/file I modified earlier to display 100 tags instead of the default 45).


<p>function wp_tag_cloud( $args = '' ) {
$defaults = array(
'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 100,
'format' => 'flat', 'separator' => "\n", 'orderby' => 'name', 'order' => 'ASC',
'exclude' => '1', 'include' => '', 'link' => 'view', 'taxonomy' => 'post_tag', 'echo' => true


Of course, modifying this file directly runs the risk of a future WordPress upgrade overwriting my category-template.php changes. But it will have to suffice until I figure out how to modify wp-includes files without modifying the actual files themselves.

Update – 10.29.13

The category-template.php file is located in the wp-includes directory. Also, the change that has to be made is adding “1” to the exclude parameter.

This entry was posted in Software Development and tagged . Bookmark the permalink.