wordpress Category Count

Discussion in 'WordPress' started by ewolf, Mar 14, 2009.

  1. #1
    Ok Im trying to figure out something, I've created This Site (just made dummy posts). What i want is to have each category display the number of posts it has. I already managed to do that by using wordpress default category widget. But the number of posts are appearing as follows

    Category
    (5)
    Category
    (3)
    Category
    (7)

    and i want it to display like this


    Category (5)
    Category (3)
    Category (7)

    Any suggestions, ideas on how i can go on about doing that? You may need to elaborate a bit im not tech savvy :confused:...

    Thanks
     
    ewolf, Mar 14, 2009 IP
  2. Big0ne

    Big0ne Well-Known Member

    Messages:
    2,615
    Likes Received:
    81
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Navigate to your theme folder located in your server: /wp-content/themes/yourtheme/ and download style.css

    Search for the part:
    #sidebar ul li a
    PHP:
    and add a property display:inline;

    Now
    #sidebar ul li a
    PHP:
    should look like:

    #sidebar ul li a {
    			color: #ffffff;
    			text-decoration: none;
    			padding-left: 10px;
    			display:inline;
    			background: url("images/sidebar_menu.gif") repeat-x left bottom;
    		}
    PHP:
    Save the style.css and overwrite existing style.css on your server. Now should work, to see effect make sure you clear (CTRL+F5) cache in your browser.


    If you need any additional help let me know.
     
    Big0ne, Mar 14, 2009 IP
  3. ewolf

    ewolf Peon

    Messages:
    111
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeh it worked!!

    my css had
    display: block;
    PHP:
    so i replaced it with
    display:inline;
    PHP:
    and it worked! Thank you so much mate :)
     
    ewolf, Mar 15, 2009 IP