littletrooper
Member
Posted 5 months ago #
I made some changes to the widgets.php in wp-includes in WordPress before to specify the number of tags I wanted in my tag cloud. I also specified several tags that I wanted to exclude from the tag cloud.
After the update, the changes I made are gone and I can't find the same lines of the function in widgets.php. Please help. Thanks!
Never edit core files! Try looking for a suitable tag cloud plugin instead.
or try some code like this in functions.php of your theme:
add_filter('widget_tag_cloud_args','set_number_tags');
function set_number_tags($args) {
$args = array('number' => 100, 'largest' => 25);
return $args;
}
http://codex.wordpress.org/Function_Reference/wp_tag_cloud