How do I make a link that directs the user to their profile?
The default code in bbPress is
<?php printf(__('Welcome, %1$s!'), bb_get_profile_link(bb_get_current_user_info( 'name' )));?.
Yet if I use this, the name of the user will be the linked text. Also, I’m not able to use this code alone. If I try:
<?php bb_get_profile_link(bb_get_current_user_info( 'name' )); ?>
…it doesn’t work. I also tried:
<a href="<?php bb_get_profile_link(); ?>">My Profile</a>
How can I change the text to My Profile and also let it stand alone? (standalone meaning on its own paragraph and with no Welcome, %1$s!)
You must be logged in to reply to this topic.