Home / category / Remove parentheses from category counts
  • Remove parentheses from category counts


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

    wordpress snippet : PHP

        $variable = wp_list_categories('echo=0&show_count=1&title_li=<h2>Categories</h2>');
        $variable = str_replace(array('(',')'), '', $variable);
        echo $variable;

    ( WordPress codex functions, hooks, in this snippet. )

    wp_list_categories, wp,

Build a better with wpsnipp.com

Weekly snippets, themes, deals coupons roundup.

x No Thanks