I’m using the following code to remove the parentheses from category counts in WordPress which works fine however the &exclude=10 to exclude a category no longer works.
<?php
$variable = wp_list_categories('echo=0&show_count=1&title_li=&exclude=10');
$variable = str_replace(array('(',')'), '', $variable);
echo $variable;
?>
WP bug bypassed with different function that essentially does the same thing.
The code that works: Make sure it goes into your Functions.php file.