Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,879
- How-to & Troubleshooting
- 128,957
- Creating & Extending
- 25,753
- Requests & Feedback
- 9,450
- Third Party Plugins
- 9,773
- Showcase
- 3,317
- Ideas
- 1,392
- Miscellaneous
- 9,143
-
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