Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter alexmattorr

    (@alexmattorr)

    Hi Etolie,

    That worked great and I really appreciate the help.

    I have one more quick question. So now the boolean is checking and works properly now, the only issue is that I am doing: echo do_shortcode(“[logout]”); if the user is logged in, and it displays the You have been successfully logged out. Is there anyway I can just force the logout link with a public function?

    Thread Starter alexmattorr

    (@alexmattorr)

    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.

    Thread Starter alexmattorr

    (@alexmattorr)

    Thanks dcooney. Did not know there was the exclude parameter for the plugin. Appreciate it.

Viewing 3 replies - 1 through 3 (of 3 total)