• Resolved matthewpaul

    (@matthewpaul)


    I’m using wp_list_categories to display my categories with a count next to each category. I removed the parentheses from the category counts. How do I add the word “entries” after each count number? The code below is what I have currently.

    <?php
    $variable = wp_list_categories('title_li=&echo=0&show_count=1');
    $variable = str_replace(array('(',')'), '', $variable);
    echo $variable;
    ?>

    Below is an example of what I want this to look like:
    Category-1 2 entries
    Category-2 5 entries
    Category-3 4 entries

    Help is appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding postcontent to category count’ is closed to new replies.