Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,003
- How-to & Troubleshooting
- 129,525
- Creating & Extending
- 25,789
- Requests & Feedback
- 9,495
- Third Party Plugins
- 9,781
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,169
-
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!
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS