[resolved] If logged in/out code (5 posts)

  1. joshziman
    Posted 10 years ago #

    I need a script that spells, if(loggedin){} else{}.

    I see the <?php wp_loginout(); ?> but thats not exactly what I'm trying to achieve.

    Thanks for your help!

  2. I'm confused. You say you've looked at wp_loginout(), but that's pretty much exactly the sort of thing it shows you how to do. Like so:
    if (is_user_logged_in())
    { stuff }
    { other stuff }

    What is that missing that you need?

  3. joshziman
    Posted 10 years ago #

    This is the provided description of wp_loginout()

    "Displays a login link, or if a user is logged in, a logout link."

    I am not looking to provide a login link, I want to include my own login form.

  4. Oh. I see. No, I thought you had looked at the actual *code* of wp_loginout, to see how it worked.

    That code that I posted above will do what you want.

  5. joshziman
    Posted 10 years ago #

    Thank you very much, problem solved!

Topic Closed

This topic has been closed to new replies.

About this Topic