• Resolved joeyjosay

    (@joeyjosay)


    I can’t find it but…

    I know there is

    <?php
    if ( is_user_logged_in() ) :
       // this content is only visible to logged in users
    else :
       // this content is visible to everyone
    endif;
    ?>

    is there a way to display an else if when the user is NOT logged in so it is only visible to not logged in users, I don’t want to tell logged in users to log in etc.

    So logged in content, not logged in content only visible to the not logged in people AND the content visible to everyone.
    Thanks in advance.
    Joe

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘if user is logged in and if user is not logged in’ is closed to new replies.