I have the logout shortcode in my header.php. Even if no user has logged in, I get the You have been successfully logged out..
I read on another thread that the logout code should only be in the area where the user is redirected / has access. So I removed the <?php echo do_shortcode(“[logout]”); ?> from the header.php and moved it to the specific page that the user gets redirected to after they login. Even in this specific page, I still get the You have been successfully logged out..
All I am trying to do is:
If the user is not logged in, There is a link in the header where they have a link to the sign in page.
If the user is logged in, There is the sign out link / button in the header.