7 years, 2 months ago
My theme has an author bio for posts but links to an archive page for the author. I installed BP Blog Author Profile Link to make it link to the BP profile instead,
However they now link to /members/admin/profile/ instead of /buddypress/members/admin/profile/
The base buddypress folder is not included.
Is there a way to fix the plugin or a simple code snippit I can put in the theme file to replace the current link?
Additionally, is it possible for this link to include the Google rel=author tag so that if the user has a Google+ profile link on their profile, there will be markup for their post?
7 years, 1 month ago
Bump. I’m interested in an answer to these two points also.
You can get a link to a user’s profile using:
bp_core_get_userlink( $user_id, $no_anchor = false, $just_link = false )
In your case, pass in the author ID as the user_id. If you set $just_link to true, you’ll get a simple URL that you can use as the href in your anchor. You can then add a rel=author to that anchor
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service