Re: Testing to see if current page is profile page
Thanks Burt, that did the trick!
The clarify, this adds a menu link to user’s profile page when they are logged in using their name as the anchor text. Then it adds the “selected” class to dynamically highlight the link only when the user is on their profile page, otherwise there is no “selected” class and the link is not highlighted ….
Thanks again.
T
Final Code:
<?php if ( is_user_logged_in() ) {
if ( bp_is_home()) { ?>
<li class="selected"><?php bp_loggedinuser_link () ?></li>
<?php } else { ?>
<li ><?php bp_loggedinuser_link () ?></li>
<?php }
} ?>