WordPress.org

Ready to get started?Download WordPress

Forums

how to list categories without heading? (3 posts)

  1. theMonkeysUncle
    Member
    Posted 6 years ago #

    How do you print a list of categories, but not include the heading? This is the code I have right now, which came as part of an existing template:

    <?php wp_list_categories('orderby=name&show_count=0&title_li=<h2>Categories</h2>');
    ?>

    Problem is, it displays this:

    Categories
    cat1
    cat2
    cat3...etc

    I just want this:

    cat1
    cat2
    cat3...etc

    ...without the "Categories" heading. How do I do this?

  2. moshu
    Member
    Posted 6 years ago #

    title_li=<h2>Categories</h2>
    It says it quite clear... it WILL display the "heading" :)
    Read: http://codex.wordpress.org/Template_Tags/wp_list_categories#Display_or_Hide_the_List_Heading

  3. theMonkeysUncle
    Member
    Posted 6 years ago #

    Sweet, it worked! Thanks for the help (and quick, too!)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.