Skip to:
Content
Pages
Categories
Search
Top
Bottom

Author bio link on posts to link to BP Profile


  • djduckworth
    Member

    @djduckworth

    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,

    http://wordpress.org/extend/plugins/bp-blog-author-link/

    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?

Viewing 3 replies - 1 through 3 (of 3 total)

  • djduckworth
    Member

    @djduckworth

    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?


    sparklyscotty
    Member

    @sparklyscotty

    Bump. I’m interested in an answer to these two points also.


    Roger Coathup
    Participant

    @rogercoathup

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Author bio link on posts to link to BP Profile’ is closed to new replies.
Skip to toolbar