• Resolved somersetbob

    (@somersetbob)


    I’m using the Default 1.6 (Kubrick) Theme.

    Before I added Sidebar Widget (1.2.1), my categories list included the number of posts in each category alongside each category title in parentheses. Now it doesn’t.

    I think it’s something to do with these lines in the Theme’s sidebar.php

    </li>
    <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>

    The above is how it appeared in the Theme’s original sidebar.php file. In Sidebar Widget’s modified file, it appears like this:

    <li><h2>Categories</h2>
    <ul>
    <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
    </ul>

    I’ve tried modifying Sidebar Widget’s line thus:

    <li><h2>Categories</h2>
    <ul>
    <?php wp_list_cats('show_count=1&sort_column=name&optioncount=1&hierarchical=0'); ?>
    </ul>

    (i.e. adding show_count=1& to the front of the line, and later I also tried changing wp_list_cats to wp_list_categories) but it makes no difference.

    Am I looking in the correct area? Is it possible to restore the count at all in Sidebar Widget?

    Thanks in advance for any help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter somersetbob

    (@somersetbob)

    Doh! OK. I’ve found the little “configuration” icons against some of the items on the Sidebar Arrangement page. I’ve checked the “show post counts” box for the Categories and I’ve got my numbers back.

    Boy, do I feel silly.

    Thanks somersetbob! That was not obvious at all… 🙂

    Is there a way to change the color of the category count from black to another color?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How To Restore Categories Count in Sidebar Widget?’ is closed to new replies.