wp_list_categories() without a starting <li />
-
Hello,
Is there any way to remove the starting <li />-tag in the function wp_list_categories()?
If I display the categories like this:
wp_list_categories('orderby=name&show_count=1&title_li=<h2>' . __('Categories') . '</h2>');
I get this result:<li class="categories"> <h2>Categories</h2> <ul> <li>...<li> </ul> </li>
I want to remove the <li class=”categories”> and
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘wp_list_categories() without a starting <li />’ is closed to new replies.