WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] want to show the number of posts of categories and archives (4 posts)

  1. reimi
    Member
    Posted 7 years ago #

    now my blog's sidebar looks like this:

    Categories
    -days
    -movies

    Archives
    -February 2007
    -January 2007

    but I want to show numbers of posts like this :

    Categories
    -days (2)
    -movies (5)

    Archives
    -February 2007 (3)
    -January 2007 (4)

    What should I do ?

    Thanks !

  2. Marty Spellerberg
    Member
    Posted 7 years ago #

    Not sure about archives, but for categories mine is...

    wp_list_cats('sort_column=name&optioncount=1&hierarchical=0');

  3. reimi
    Member
    Posted 7 years ago #

    thanks !

  4. domainbug
    Member
    Posted 6 years ago #

    wp_list_cats('sort_column=name&optioncount=1&hierarchical=0');

    Thanks Marty, but just where and in what file does this line of code go ??

    Regards
    Lee

Topic Closed

This topic has been closed to new replies.

About this Topic