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 Change Page Navigation In WordPress Blog? Hello All, In order to change the order of navigation...
  4. How To Change Text In Top Navigation Bar Of WordPress Blog? Hello All, In order to change the text in navigation...
  5. How To Convert Category Pages To Post Titles In WordPress Blog Hi, Many wordpress users wants to display Category Pages instead...

Leave a Reply

You must be logged in to post a comment.