Skip to content

Instantly share code, notes, and snippets.

@gstricklind
Last active February 18, 2018 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gstricklind/436fbe9bbf92410b8b01d2a412ca8e08 to your computer and use it in GitHub Desktop.
Save gstricklind/436fbe9bbf92410b8b01d2a412ca8e08 to your computer and use it in GitHub Desktop.
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