Skip to content

Instantly share code, notes, and snippets.

@leanda
Created November 21, 2012 09:56
Show Gist options
  • Save leanda/4124060 to your computer and use it in GitHub Desktop.
Save leanda/4124060 to your computer and use it in GitHub Desktop.
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;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment