Return to Snippet

Revision: 19896
at November 3, 2009 10:59 by gd6d


Initial Code
<ul>
<?php
wp_list_pages('depth=1&title_li=0&sort_column=menu_order');
if(current_user_can('read_private_pages')) :
?>
<li><a href="<?php echo get_permalink(10); ?>">For Authors only</a></li>
<?php endif; ?>
</ul>

Initial URL
http://www.wprecipes.com/how-to-add-privates-pages-in-navigation-menus

Initial Description

                                

Initial Title
Add privates pages in navigation menus

Initial Tags
wordpress

Initial Language
PHP