WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Buttons for Logged-In and Logged Out Users (3 posts)

  1. kaneesha
    Member
    Posted 5 years ago #

    Hello,

    I've got 3 Buttons in my Header: Register , Login and Profile.

    Is there a special super secret WordPress Php Tag to show the Register and Login - Button only to/for Guests and the Profile button only to/for Logged in Users.

    so something like: if a guest then <blabla guest>log in</blabla guest> if not then <blabla member>log in</blabla member>.

    I'm not a very good coder but somebody told me something with "if else" ... well It's all Greek to me :(

  2. ClaytonJames
    Member
    Posted 5 years ago #

    so something like: if a guest then <blabla guest>log in</blabla guest> if not then <blabla member>log in</blabla member>.

    Thinking along those lines... this seems to inspire hope:

    http://codex.wordpress.org/Function_Reference/is_user_logged_in

    Is your theme an original? Or could you tell us what it is, or give us a link? Maybe someone will take a look.

  3. kaneesha
    Member
    Posted 5 years ago #

    Looks promising!

    Thank you CJ

Topic Closed

This topic has been closed to new replies.

About this Topic