• I’m try to add a ” / ” between my menu bar buttons by using the link_after parameter in wp_list_pages

    my code is as follows:

    <?php wp_list_pages('depth=1&title_li=&link_after=<span class="clearstick">&nbsp;/&nbsp;</span>'); ?>

    but is does not work.
    view my site here

    How can I have it so the dash and the space either side appears after each menu item?

Viewing 1 replies (of 1 total)
  • Thread Starter miocene22

    (@miocene22)

    OK I figured it out…

    You have to pass the argument as an array to the function:

    <?php
    $arguments = array('depth' => '1', 'title_li' => '', 'link_after' => '<span class="clearstick">&nbsp;/&nbsp;</span>');
    wp_list_pages($arguments);
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Using wp_list_pages’ is closed to new replies.