Tell us what you are trying to do?
I want to use my site's primary menu to have dynamic links for logging in and logging out - this is, it will show a login link to logged out users and a logout link to logged in users. Login and logout would redirect to specific page. Currently my login page is at hidden link (post id is 207308) and uses this shortcode: {!{wpv-login-form redirect_url='hidden link'}!}. The "Log Out" link could also redirect to hidden link because logged out users on that page are shown a login form.
Is there any documentation that you are following?
I've looked at several posts, none seem to deal with this specifically.
What you can do is to create the login page and my account page.
For the login page you can add it to an access group where only guests have access to the page. This page will then be added to the menu and will only be visible to logged out users.
Then you create a my account page and this page will only be accessible to user who are logged in and this page when added to the menu will only be able to be seen by users who are logged in.
Hi Shane
This give me the logout link in the content area of the "my account" page but not in the primary menu. Maybe I'm missing something.
Thanks
Wayne
Hi Shane
I'm not sure what I should be adding to the logout page. When the user click the "logout" link in the primary menu, I want them to be logged out immediately and ideally be redirected to a specific page (probably the homepage or possibly elsewhere).
Thanks again for your help. Feel free to login again using the same credentials.
Wayne
I was able to achieve what I wanted by using the Login Log Out Menu Item plugin in combination with the Toolset Access plugin.
My issue is resolved now. Thank you!