Create a gist now

Instantly share code, notes, and snippets.

Embed
Remove tag cloud limit
add_filter('widget_tag_cloud_args', 'gs_filter_tag_cloud_limit');
function gs_filter_tag_cloud_limit($args){
//Optionally change the taxonomy
//if(isset($args['taxonomy']) && $args['taxonomy'] == 'post_tag'){
$args['number'] = ''; //Restrict number of tags
//}
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment