Posted By

digitalclubb on 08/16/11


Tagged

wordpress custom wplistpages


Versions (?)

WordPress Custom wp_list_pages output


 / Published in: PHP
 

Quick fix to tweak output for WordPress wplistpages()

  1. <ul>
  2. <?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')); ?>
  3. </ul>

Report this snippet  

You need to login to post a comment.