Last active
February 18, 2018 20:29
-
-
Save gstricklind/436fbe9bbf92410b8b01d2a412ca8e08 to your computer and use it in GitHub Desktop.
Remove tag cloud limit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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