Hi,

If you are using private pages and want to display then in navigation menu then use this hack. For that open the file where your navigation code is and add this 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>

Now, navigation menu displays private pages when specific user is login into blog.

That’s it!

Thanks,

Shane G.

Popularity: 1%

Related posts:
  1. How To Display Links To Pages and Categories In Wordpress Blog Navigation Header? Hi, It assumes that current navigation is using the Template...
  2. How To Add Private Notes In Wordpress Blog Posts? Hi, Many wordpress users wants to leave private notes on...
  3. How To Remove Canonical Links From Comments In Wordpress Blog? Hi, We can easily remove canonical/duplicate comments with the help...
  4. Wordpress Navigation List Plugin NAVT Hi, This plugin is used to provide complete control over...
  5. How To Change Page Navigation In WordPress Blog? Hello All, In order to change the order of navigation...

Leave a Reply

You must be logged in to post a comment.