WordPress.org

Ready to get started?Download WordPress

Forums

category not listed (3 posts)

  1. yrdnsa
    Member
    Posted 9 years ago #

    hello, list_cat() displays the categorys in a list like this:
    cat1
    cat2
    cat3

    how can I display them like this?:
    cat1 | cat2 | cat3

    tnx, yarden

  2. Kafkaesqui

    Posted 9 years ago #

    Simplest option may be to set the 'list' parameter to false. Another one is, typically list_cats() is placed in an ul (HTML) element, to keep the list tags valid. Give this ul an unique id (let's call it "list-cats"). For example:

    <ul id="list-cats">
    <?php list_cats(); ?>
    </ul>

    Then in your style.css, add something like:

    #list-cats li {
    list-style-type: none;
    display: inline;
    }

  3. yrdnsa
    Member
    Posted 9 years ago #

    thank you very very much!

Topic Closed

This topic has been closed to new replies.

About this Topic