Re: Must log-in to see any page
The box for google to not index my site is checked and has been since installation.
I ran a search I couldn’t find what I was looking for so I posted.
I’m looking for more of a simple if not logged in, redirect type code/plugin/mod .
I’m not looking for people to have to pay for the site.
I think Ray’s post/mod on that page maybe what I’m looking for, but I pasted it into functions.php and just ended up with blank pages.
I found this code on another forum:
if (is_user_logged_in()){
global $current_user;
if ( ! isset($current_user) ) $current_user = wp_ get_current_user();
? >
Link to Protected Content
< ?
} else {
? >
<a href="” title=”Login”>Login to edit
< ?
}
but it’s not working.