Share a little code
My friend asked me a question long before, how can use sliding doors CSS for list pages? I told him, use function wp_list_pages(). I later found that can’t do it.
I’ve written a litter function code to support it.
How to use?
- Download source code get_list_pages.zip;
- copy code content in your theme functions.php;
- Add anywhere:
<ul>
<?php get_list_pages(); ?>
</ul>
Advanced
$index_title– index title$format– show display format$currentCSS– current class name
get_list_pages('Home', '<li{current}><a href="{link}"><span>{name}</span></a></li>', 'current_page_item');



