Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Use the \”bp user link\” in a wp theme


skritek
Participant

@skritek

Hi BP n00b here but not a wordpress n00b. I am trying to get this to work as well with bp_core_get_userlink() as well. When I submit the_author_id() as an argument I get the author ID returned as the output of the function instead of the proper profile link. If I submit the author id as a simple string (in this case 6) I get the proper link returned? What am I missing here?

so for the sake of clarity code that looks like this <?php echo bp_core_get_userlink(the_author_id()); ?> returns 6 and code that looks like this <?php echo bp_core_get_userlink(6); ?> returns the correct link to profile page.

I don’t get it. Any help would be much appreciated

Skip to toolbar