WordPress.org

Ready to get started?Download WordPress

Forums

Remove extra li and ul from wp_list_categories? (3 posts)

  1. JPigford
    Member
    Posted 7 years ago #

    Right now I can't seem to keep wp_list_categories from adding an extra li and ul.

    I just want to list the categories like:

    <li><a href=\"/whatever/\">Category 1</a></li>
    <li><a href=\"/whatever/\">Category 2</a></li>
    <li><a href=\"/whatever/\">Category 3</a></li>

    but wp_list_categories is adding

    <li>Categories <ul>
    at the top

  2. serif
    Member
    Posted 7 years ago #

    In the arguments passed in for the function, try adding 'title_li=0' -- so it would look something like wp_list_categories('title_li=0'). This did the trick for me.

  3. thepete
    Member
    Posted 6 years ago #

    This didn't work for me. :( And it seems to be screwing up my div in MSIE. :( :(

Topic Closed

This topic has been closed to new replies.

About this Topic