Title: Diffrent link to different users
Last modified: August 20, 2016

---

# Diffrent link to different users

 *  [rantamies](https://wordpress.org/support/users/rantamies/)
 * (@rantamies)
 * [14 years ago](https://wordpress.org/support/topic/diffrent-link-to-different-users/)
 * I have page that has links. i want to show different links to different user.
   So when user is logged in he/she cuold only see links that i want.
 * Any idea how to do that?
 * Thanks allready
 * Ville

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years ago](https://wordpress.org/support/topic/diffrent-link-to-different-users/#post-2706905)
 * try it with:
 * [http://codex.wordpress.org/Function_Reference/is_user_logged_in](http://codex.wordpress.org/Function_Reference/is_user_logged_in)
   
   and [http://codex.wordpress.org/Function_Reference/get_currentuserinfo](http://codex.wordpress.org/Function_Reference/get_currentuserinfo)
 *  Thread Starter [rantamies](https://wordpress.org/support/users/rantamies/)
 * (@rantamies)
 * [14 years ago](https://wordpress.org/support/topic/diffrent-link-to-different-users/#post-2706926)
 * Thanks for your answear.
 * i understood that user_wp will show is user logged in or out. But how i can show
   link that i want only to user that i want
 * [http://sunpromotions.fi/intra/](http://sunpromotions.fi/intra/)
 * this is the page. i have users with same names than links on that page. I want
   to show link “kuopio” to only to user kuopio, and link “vaasa” only to to user
   vaasa.
 * Thanks
 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years ago](https://wordpress.org/support/topic/diffrent-link-to-different-users/#post-2706948)
 * something like this:
 *     ```
       if ( is_user_logged_in() ) {
         global $current_user;
         get_currentuserinfo();
         if($current_user->user_nicename == 'keesiemeijer') {
          // show links for keesiemeijer
         }
         if($current_user->user_nicename == 'vaasa') {
          // show links for vaasa
         }
       }
       ```
   
 *  Thread Starter [rantamies](https://wordpress.org/support/users/rantamies/)
 * (@rantamies)
 * [14 years ago](https://wordpress.org/support/topic/diffrent-link-to-different-users/#post-2706951)
 * keesiemeijer thanks!
 * where do i put this?
 * thank you again.
 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years ago](https://wordpress.org/support/topic/diffrent-link-to-different-users/#post-2706955)
 * Do you want to put this in the post content or somewhere in your theme template
   files?
 *  Thread Starter [rantamies](https://wordpress.org/support/users/rantamies/)
 * (@rantamies)
 * [14 years ago](https://wordpress.org/support/topic/diffrent-link-to-different-users/#post-2706957)
 * I want to use that on page [http://sunpromotions.fi/intra/](http://sunpromotions.fi/intra/)
 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years ago](https://wordpress.org/support/topic/diffrent-link-to-different-users/#post-2706970)
 * As this is a commercial theme, I cannot look into the theme’s template files 
   to tell you where to put it. Ask the theme developer for assistance.
 *  Thread Starter [rantamies](https://wordpress.org/support/users/rantamies/)
 * (@rantamies)
 * [14 years ago](https://wordpress.org/support/topic/diffrent-link-to-different-users/#post-2706972)
 * Thanks for your help!!
 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years ago](https://wordpress.org/support/topic/diffrent-link-to-different-users/#post-2706979)
 * No problem, and good luck.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Diffrent link to different users’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 2 participants
 * Last reply from: [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/diffrent-link-to-different-users/#post-2706979)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
