Monday, September 6, 2010

How to add span tag into page navigation

<?php 
echo preg_replace('@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i', '<li$1><a$2><span>$3</span></a>',wp_list_pages('echo=0&orderby=id&title_li=&depth=1'));
?>