WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Can’t figure out how to add Post Count to Categories in Sidebar

[Resolved] Can’t figure out how to add Post Count to Categories in Sidebar

Viewing 8 replies - 1 through 8 (of 8 total)
  • <?php wp_list_cats(‘sort_column=name&optioncount=1’); ?>

    That did the trick, but it seemed to have bumped my categories down like so:

    http://sevenstripes.com/blog/

    any ideas on how to put the Post Count right next to the Category?

    Bump!

    I changed the code back so my Categories didnt look gaffed up on my website. But, it looked like this:

    Domestic Politics (U.S.)
    (7)
    Europe
    (2)
    Islamic Extremism
    (8)

    Instead of this, what I want:

    Domestic Politics (U.S.) (7)
    Europe (2)
    Islamic Extremism (8)

    Hello

    Hmmm, not sure, I copied the code from your site to my hard drive and added numbers such as…(237) to the end of the category links, and it looks ok to me.

    I don’t want to add the numbers to the end of the category links… I want the number of posts in that category to be automatically displayed next to the category as shown above, instead of underneath, as also shown above.

    This question has been answered several times…
    See if this info helps: http://wordpress.org/support/topic/51030?replies=7

    Hello

    I don’t want to add the numbers to the end of the category links… I want the number of posts in that category to be automatically displayed next to the category as shown above, instead of underneath, as also shown above.

    Either the numbers are added by hand or dynamically, they still take up the same amount of space, once they are there.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Can’t figure out how to add Post Count to Categories in Sidebar’ is closed to new replies.