/ Published in: PHP
Quick fix to tweak output for WordPress wp_list_pages()
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<ul> <?php echo preg_replace('@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i', '<li$1><span class="navl"></span><a$2>$3</a><span class="navr"></span>',wp_list_pages('echo=0&title_li=&depth=1&sort_column=post_date')); ?> </ul>