Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,845
- How-to & Troubleshooting
- 129,860
- Creating & Extending
- 25,888
- Requests & Feedback
- 9,534
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,178
-
You’ve got the right idea but your syntax is wrong. Presumably you don’t want the button (ie the li list item) to show up at all for logged-in users. So you need to put the entire button inside of an if statement:
<?php if ( !is_user_logged_in() ) { ?><li><a href="register">Register</a></li><?php } ?>
Also, be patient! 9.5 hours to wait for help isn’t all that much time!