Number of Posts

Discussion in 'WordPress' started by djhassoo, Apr 21, 2008.

  1. #1
    Please tell me how i can display number of posts with category,

    like if there is 13 posts under books category, on my blog that is showing just "Books" but i want to show that "Books(13)"

    check it out my very new blog and tell me www.smsdad.com

    Thank You

    DJHassoo
     
    djhassoo, Apr 21, 2008 IP
  2. golddragon

    golddragon Active Member

    Messages:
    583
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #2
    Try this:

    <?php wp_list_cats('sort_column=name&optioncount=1&title_li=') ?>
     
    golddragon, Apr 21, 2008 IP
  3. djhassoo

    djhassoo Guest

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thx dear but where to put this lolz
     
    djhassoo, Apr 21, 2008 IP
  4. golddragon

    golddragon Active Member

    Messages:
    583
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Open your Dashboard - Theme Editor (may be http://www.smsdad.com/wp-admin/theme-editor.php), click sidebar.php.

    Looking for <?php wp_list_cats .......... ?>

    Replace with <?php wp_list_cats('sort_column=name&optioncount=1&title_li=') ?>
     
    golddragon, Apr 21, 2008 IP
  5. djhassoo

    djhassoo Guest

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Its not working, i tried again n again but its failed
     
    djhassoo, Apr 21, 2008 IP
  6. djhassoo

    djhassoo Guest

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    is there any wordpress setting instead of coding?
     
    djhassoo, Apr 21, 2008 IP
  7. sultanofseo

    sultanofseo Notable Member

    Messages:
    9,930
    Likes Received:
    405
    Best Answers:
    0
    Trophy Points:
    265
    #7
    its very simple actually. yo can see that working in my blog in the blog feed. here's how to do it:

    once you are logged in, click on presentation/widgets

    you should have categories 1 widget selected. click on that and there will be a popup window.

    on the popup window, check the post count box and then save changes
     
    sultanofseo, Apr 21, 2008 IP
  8. bigdayup

    bigdayup Banned

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    try to read. coding kind an interisting.
    if can't do that go to design --- widgets on wordpress 2.5
    or go to presentation --- widget for wordpress 2.5 -
     
    bigdayup, Apr 21, 2008 IP
  9. djhassoo

    djhassoo Guest

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    @sultanofseo you simply rocks man problem solved thankyou
     
    djhassoo, Apr 21, 2008 IP
  10. sultanofseo

    sultanofseo Notable Member

    Messages:
    9,930
    Likes Received:
    405
    Best Answers:
    0
    Trophy Points:
    265
    #10
    i'm glad to help you. cheers
     
    sultanofseo, Apr 21, 2008 IP