Support » Themes and Templates » wp_list_categories vs wp_list_pages

  • Hi all,

    Quick question. In a current theme I have the following code to list the pages:
    <?php wp_list_pages('title_li=&depth=1&link_before=<span class="left-c">&link_after=</span><span class="right-c"> </span>'); ?>

    I’d like to do the same for categories, so I’ve changed the above to this:
    <?php wp_list_categories('title_li=&depth=1&link_before=<span class="left-c">&link_after=</span><span class="right-c"> </span>'); ?>

    This gets me the list of categories, but the styling is all messed up – the <span> tags that I have in that line of code do not appear.

    How can I make this work?

    Thanks for any help!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘wp_list_categories vs wp_list_pages’ is closed to new replies.