using if logged in function
-
Hi, i am trying to do something like this in a text widget.
<?php if(is_user_logged_in()) { ?> <a href="https://webpage.usplayersonly.x10host.com/wp-login.php?action=logout">Logout</a> <br /> <?php }else{ ?> <a href="https://webpage.usplayersonly.x10host.com/wp-login.php">Login</a> <br /> <a href="https://webpage.usplayersonly.x10host.com/wp-login.php?action=register">Register</a> <?php } ?>
its not working, am i doing something wrong in the widget?
thanks ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘using if logged in function’ is closed to new replies.