Is there any tag or function I can use to detect if the person viewing my blog is a guest or logged in?
Why isn't there something like: if( is_guest() ) function?
Is there any tag or function I can use to detect if the person viewing my blog is a guest or logged in?
Why isn't there something like: if( is_guest() ) function?
There is this:
<?php
global $user_login;
if( $user_login ) {
echo 'user logged in';
} else {
echo 'user not logged in';
}
?>This shoutbox have that functionality too
Or these:
http://faked.org/blog/wp-onlinecounter/
or WPuserOnline:
http://lesterchan.net/portfolio/programming.php
This topic has been closed to new replies.