Support » Fixing WordPress » wp_list_cats and optioncount – simple question

  • Hello

    I’m trying to modify the blix theme, so for categories, it displays the number of articles

    e.g.
    uncategorized (10)
    politics (5)

    I’m a php/css noob, but I gather that

    <?php wp_list_cats('sort_column=name&hide_empty=0); ?>

    should be modified to:

    <?php wp_list_cats('sort_column=name&hide_empty=0&optioncount=1'); ?>

    But when I do this, the display is not formatted properly as such:
    uncategorized
    (10)
    politics
    (5)

    Is this a css thing? Any help would be appreciated

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Is this a css thing?

    That’s exactly what it is. In Blix’s layout.css, locate:

    #subcontent li a {
    display:block;
    padding:1px 0;
    height:1%; /* IE WIN */
    }

    If you remove display: block; I believe this will keep post count from being bumped to the next line.

    Kafkaesqui, that’s great – worked just like you said

    many thanks

    Hi, I have the same problem, but I need a display:block for my <a>. Which file I have to modify in order to include the optioncount inside the tag </a>?

    thank you!

    anyone can help me?!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp_list_cats and optioncount – simple question’ is closed to new replies.