Skip to:
Content
Pages
Categories
Search
Top
Bottom

Set author profile link to buddypress profile


  • hanza3
    Participant

    @hanza3

    I’m looking to change the default author page links (like those in when you click on an author’s name at the end or beginning of a post) to link to their buddypress profile. Does anyone know if that’s possible and how to achieve it?

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

  • Venutius
    Moderator

    @venutius

    You could probably do it by overloading your theme, just find the place where it’s adding the post_author link and overload that using a child theme.

    The file in question is usually themes/yourtheme/single.php somewhere it will probably be calling get_author_posts_url($author_id) which points to the WP author page, you’d replace that with bp_core_get_user_domain( $author_id ).

    That’s the general gist if what you need to do, but it might get complicated depending on your theme.


    hanza3
    Participant

    @hanza3

    Thanks very much, I’ll give that a try!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar