wordpress snippets last updated   : August 18, 2014
we now have 638 snippets

Remove parentheses from category counts

wordpress snippet

Adding this snippet to your wordpress template will remove the parentheses surrounding the category count when using wp_list_categories.

snippet :  PHPcopy
<?php
    $variable = wp_list_categories('echo=0&show_count=1&title_li=<h2>Categories</h2>');
    $variable = str_replace(array('(',')'), '', $variable);
    echo $variable;
?>
source →

Did you like this post? If so please share it with your friends. Thanks!

jqsnipp.com | we just launched jquery snippets website