[wp-hackers] Re: Span to wp_list_pages

Idled Soul idledsoul at gmail.com
Sun Nov 2 05:21:23 GMT 2008


Actually, I think it's THIS code that is actually working for me. I'm 
not positive though, didn't try classing it yet...

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

Just throwing it out there in case someone else wants it or whatever. :)


More information about the wp-hackers mailing list