WordPress.org

Support

Support » How-To and Troubleshooting » Remove extra li and ul from wp_list_categories?

Remove extra li and ul from wp_list_categories?

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    This didn’t work for me. 🙁 And it seems to be screwing up my div in MSIE. 🙁 🙁

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove extra li and ul from wp_list_categories?’ is closed to new replies.