Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • erasmuscss

    (@erasmuscss)

    Well, maybe I got the question wrong, my code gives you a <span> arround every element (also subpages), maybe the question was only how to put a <span> arround the title element as <h2>Pages</h2>

    erasmuscss

    (@erasmuscss)

    Hello, I don’t know if still someone is interested in this issue, but i figured out, that it only works if you put “title_li” at the end, and not
    in the beginning as terriann suggested. What Dap1 proposed puts only one <span> at the begin and one at the end but not arround every link.

    Here the code that works:

    <?php wp_list_pages('link_before=<span>&link_after=</span>&title_li='); ?>
    
Viewing 2 replies - 1 through 2 (of 2 total)