Skip to content

Instantly share code, notes, and snippets.

@leanda
leanda / gist:4124060
Created November 21, 2012 09:56
WordPress: Replace parentheses from Category Counts
<?php
$variable = wp_list_categories('echo=0&show_count=1&include=1,2,3,4,5&title_li=');
$variable = str_replace('(', '<sup>', $variable);
$variable = str_replace(')', '</sup>', $variable);
echo $variable;
?>