• I think this is fairly simple, but what php would I put in the theme to display a message to unregistered users only?

Viewing 2 replies - 1 through 2 (of 2 total)
  • This would check to see if the browser in use has a “WordPress user” cookie set:

    <?php if(empty($_COOKIE['wordpressuser_' . COOKIEHASH])) : ?>
    It doesn't look like you've registered. Gak!
    <?php endif; ?>

    You could test whether someone is logged in, but then the code above would work for them as well.

    Thread Starter kartlink

    (@kartlink)

    Thanks very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Message for unregistered users’ is closed to new replies.