Display WordPress tag cloud widget as list

WordPress tag widgets display tags in a tag cloud by default. Here’s how to override that default behaviour; specifically, how to display WordPress tags as lists.

add_filter('widget_tag_cloud_args','nwb_tag_cloud_filter'); function nwb_tag_cloud_filter($args) { $my_args = array( 'smallest' => 14,  'largest' => 14,  'format' => 'list',  'unit' => 'px',  ); $args = wp_parse_args( $args, $my_args ); return $args; }