Skip to content

Instantly share code, notes, and snippets.

@gstricklind gstricklind/functions.php
Last active Feb 18, 2018

What would you like to do?
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
You can’t perform that action at this time.