if (is_user_logged_in())
-
Im having an issue on the homepage after a user logs in. On my main nav I have a button that display Log In if a user is logged out but if they are logged in it displays Profile with a link to the the users profile page.
Once a user is logged in and redirected to the homepage the button says Profile (this is correct). If they navigate to another page the button says Profile(correct again). If they navigate back to the homepage, the button changes to Login.
Any ideas why this would change back to login only on the homepage while the user is logged in? Im a but stumped.
- The topic ‘if (is_user_logged_in())’ is closed to new replies.