Entry / Entries After Category Count
-
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”?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Entry / Entries After Category Count’ is closed to new replies.