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'));
?>

Comments

Popular posts from this blog

Set limit wp_nav_menu

Conut document have children that are show in navigation