Title: Hard Coded Menu Links
Last modified: August 24, 2016

---

# Hard Coded Menu Links

 *  [mtporter](https://wordpress.org/support/users/mtporter/)
 * (@mtporter)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/hard-coded-menu-links/)
 * How can make the following swap out 1 link to another after logging in?
 *     ```
       <a href="http://www.domain.org/contact">Contact</a> Us |
   
       <a href="http://www.domain.org/about-us">About</a> Us |
   
       <a href="http://www.domain.org/register">Join</a> Us |
   
       <a href="http://www.domain.org/newsletter/">Newsletter</a>
       ```
   
 * Would like to hide or replace the register link with another link

Viewing 1 replies (of 1 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/hard-coded-menu-links/#post-6059140)
 * [https://codex.wordpress.org/Function_Reference/is_user_logged_in](https://codex.wordpress.org/Function_Reference/is_user_logged_in)
 * try to change the one line from:
 *     ```
       <a href="http://www.domain.org/register">Join</a> Us |
       ```
   
 * for example to:
 *     ```
       <?php if ( is_user_logged_in() ) { ?>
       <a href="http://www.domain.org/another">Another</a> Us |
       <?php else { ?>
       <a href="http://www.domain.org/register">Join</a> Us |
       <?php } ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Hard Coded Menu Links’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/hard-coded-menu-links/#post-6059140)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
