• kahitano

    (@kahitano)


    can I have some pages that are not available to people who are not registered on WP?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can use is_user_logged_in() to check whether someone is logged in, like so:

    if ( is_user_logged_in() ) :
         echo 'some stuff for registrants!';
    else :
         echo 'some stuff for people not logged in.';
    endif;

    Wow, I was looking into the Members Only plugin, but putting that code into my single.php and page.php basically solves getting that to work! Great suggestion!!

    You could probably develop it further with Role Manager as well. (see towards the middle of this thread too as it might be helpful)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Members only page?’ is closed to new replies.