• So I have a call like this in my site… (its in the headder)

    <li <?php if (is_category('7')) { echo "class=\"current_page_item\""; }?> ><?php wp_list_cats('list=0&child_of=4'); ?></li>

    Which works perfectly fine and validates and all that jazz… but the problem lies within the modification I have made to the wp_list_cats call… the list=0 removes the “list-y-ness” from the function… i.e. it removes the <li></li> from the code… and inserts a <br /> at the end of every line…

    My question is…

    Is there any way to prevent the <br /> from being added?

    I want to get rid of it because it bumps up my list and I have to force it back down with a negative margin in my stylesheet…

The topic ‘Question about wp_list_cats()’ is closed to new replies.