WordPress.org

Forums

Conditional tags (3 posts)

  1. MAK
    Member
    Posted 9 years ago #

    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

  2. MichaelH
    Member
    Posted 9 years ago #

    The function get_currentuserinfo() might work for you.

  3. MAK
    Member
    Posted 9 years ago #

    Thanks Michael, I'll check it out later; something just came up and I have to leave now.

Topic Closed

This topic has been closed to new replies.

About this Topic