This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 7th, 2010  |  syntax: None  |  size: 0.29 KB  |  views: 168  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. in header.php find <ul id="nav"> and add the following snippet after <?php wp_list_pages(); ?> and before ending </ul>
  2.  
  3. <?php if ( is_user_logged_in() ) : ?>
  4. <li class="new_post"><a href="http://yoururl.com/wp-admin/post-new.php" title="Add New Post">Add New Post</a></li>
  5. <?php endif; ?>
clone this paste RAW Paste Data