[Resolved] Can someone tell me the if tags for not logged in users please?
I’m trying to add a button in the main nav menu (Customized theme), saying ‘Register’.
But obviously I only want it to appear when users are not logged in. When they are logged in, it should not display nothing.
Here’s what I’ve been trying with:
<li<?php if ( !is_user_logged_in()?>><a href="register">Register</a ?>>
(If FAR from being a coder, so please, dont laugh )
I’ve been trying to work this out (after searching the forums) for hours, and now finally gave in and thought it were time to ask here. Hope someone can help me… thanks
- The topic ‘[Resolved] Can someone tell me the if tags for not logged in users please?’ is closed to new replies.