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

  1. JPigford
    Posted 9 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
    Posted 9 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
    Posted 9 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