WordPress.org

Ready to get started?Download WordPress

Forums

Template tag for displaying content only if user is logged in? (5 posts)

  1. tenkabuto
    Member
    Posted 6 years ago #

    Is there a template tag that will allow me to only show content if a user is logged in? I've looked and haven't been able to find one..

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

  3. tenkabuto
    Member
    Posted 6 years ago #

    Thank you! I've also found this thread and I'm wondering if it also works. =/

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    That code will work in some, but not all, cases. The is_user_logged_in() function always works.

  5. tenkabuto
    Member
    Posted 6 years ago #

    Oh, okay, thank you very very much!

Topic Closed

This topic has been closed to new replies.

About this Topic