WordPress.org

Ready to get started?Download WordPress

Forums

display option count beside rather than below category (3 posts)

  1. TomJohnson
    Member
    Posted 8 years ago #

    How can I display my optioncount beside rather than below my categories? My site is http://stc-suncoast.org.

  2. MichaelH
    Member
    Posted 8 years ago #

    In the WordPress default theme the optioncount appears to the right of the option description in parenthesis ().

    Here's that code taken from wp-content/themes/default/sidebar.php.

    <li><h2>Categories</h2>
    <ul>
    <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
    </ul>
    </li>

    ********************
    Welcome to the WordPress Support Forums!

    Please help keep the Forums successful by reading:
    Using the Support Forums

    Also, remember the WordPress Codex and the FAQ pages.

    And, thank you, for letting us know if this information proves useful (or not)!
    ********************

  3. sadish
    Member
    Posted 8 years ago #

    Just try to paste this line of code at the end of spring-flavour.css, save it, and then refresh the page.

    .categories li a { display:inline;}

    but that may cause other side effects.
    if it doesnt work to your needs, then delete this line and try something else.

    Thanks
    Sadish

Topic Closed

This topic has been closed to new replies.

About this Topic