Forum Replies Created
-
Thanks. I like keeping my plugin usage to the minimum. Turns out I wasn’t thinking correctly as the solution is pretty simple. Here it is for future inquirers:
PHP1234567891011<?phpif ( is_user_logged_in() ) { ?><?php wp_get_current_user();echo 'Hi ' . $current_user->user_firstname . '!';?><?php } else { ?><ul><li><a href="#" class="popup-login">Login</a></li><li><a href="#" class="popup-register">Register</a></li></ul><?php }?>in reply to: Verification and hide login / register pagesJust pinging this to get more attention. I have the same #1 question as @alexwadja had. I added the login, register and my profile links to my header but I would like to only show them when appropriate. i.e. Hide the login/register if a user is logged in and only show my profile if a user is already logged in.
in reply to: Verification and hide login / register pages
Viewing 2 posts - 1 through 2 (of 2 total)