Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,004
- How-to & Troubleshooting
- 129,608
- Creating & Extending
- 25,789
- Requests & Feedback
- 9,498
- Third Party Plugins
- 9,791
- Showcase
- 3,316
- Ideas
- 1,384
- Miscellaneous
- 9,172
-
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!