Title: Conditional tags
Last modified: August 18, 2016

---

# Conditional tags

 *  [Mark Kehn](https://wordpress.org/support/users/mak/)
 * (@mak)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/conditional-tags-3/)
 * Hi,
 * Right now I have certain links in my sidebar appear based on what page you are
   looking at. What I would prefer is having those links appear based on which user
   is logged in. Such as:
 * If logged in user = Amanda show these links or if logged in user = user level
   2 show these links
 * Is there a way to do this? Would using the conditional tags below be the same?
 * is_author(‘2’)
 * is_author(‘Amanda’)
 * I’d be more interested in showing links based on user name or user level since
   I don’t promote people to actual author roles. Isn’t there an is_user() type 
   of conditional tag? I didn’t see it listed on the “conditional tags” page of 
   Codex.
 * Thanks

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/conditional-tags-3/#post-337848)
 * The function [get_currentuserinfo()](http://codex.wordpress.org/Function_Reference/get_currentuserinfo)
   might work for you.
 *  Thread Starter [Mark Kehn](https://wordpress.org/support/users/mak/)
 * (@mak)
 * [20 years, 4 months ago](https://wordpress.org/support/topic/conditional-tags-3/#post-337850)
 * Thanks Michael, I’ll check it out later; something just came up and I have to
   leave now.

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

The topic ‘Conditional tags’ is closed to new replies.

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [tags](https://wordpress.org/support/topic-tag/tags/)
 * [user](https://wordpress.org/support/topic-tag/user/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Mark Kehn](https://wordpress.org/support/users/mak/)
 * Last activity: [20 years, 4 months ago](https://wordpress.org/support/topic/conditional-tags-3/#post-337850)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
