I want to add 'entry / entries' after each category count. Here's what I've got up until now:
$catID = get_cat_id('Projects');
$variable = wp_list_categories('title_li=&echo=0&show_count=1&exclude=' . $catID);
$variable = str_replace( '(', '', $variable);
$variable = str_replace( ')', ' entries', $variable);
echo $variable;
How can I make the code detect categories with 1 entry and echo "entry" instead of "entries"?