WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Show something only to guests

[Resolved] Show something only to guests

  • Is there any way to make something only show to people who aren’t registered?

    I want to add a link to the registration page, but only have it show if the user isn’t logged in. The below worked the other way around. 😛 Any similar function like that with “is_user_guest” or something?

  • <?php if ( is_user_logged_in() ) { ?> Registrer deg! <?php } ?>
  • Thanks for any help. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Show something only to guests’ is closed to new replies.
Skip to toolbar