Return to Snippet

Revision: 50214
at August 16, 2011 06:53 by digitalclubb


Updated Code
<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>

Revision: 50213
at August 16, 2011 06:20 by digitalclubb


Initial Code
<ul>
<?php echo preg_replace('@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i', '<li><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>

Initial URL

                                

Initial Description
Quick fix to tweak output for WordPress wp_list_pages()

Initial Title
WordPress Custom wp_list_pages output

Initial Tags
wordpress

Initial Language
PHP