WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Change Comment Author link (8 posts)

  1. tjbrewers
    Member
    Posted 2 years ago #

    I'm running a WPMU with BuddyPress on the subdomain. All users of all sites are BP members, registration is through the BP site. On the main site, when a user posts a comment, the link shows mainsite.com/members/username instead of bp.mainsite.com/members/username.

    I'd like to filter into (through my child template's function.php) comment-template.php to change the url. How do I do that?

    Thank you, Tonya

  2. Does bp.mainsite.com/members/username exist? Normally it should all point back to the main site were BP was installed.

  3. tjbrewers
    Member
    Posted 2 years ago #

    No, on the mainsite there is no members/. Although BP is network enabled, it is assigned to the secblog (subdomain), which is where the /members/username exist.

    With that, how am I able to hook into comments-template.php?

  4. Did you post over on the BP forums? You're likely to get better help there, as it should detect that the BP blog is not the main.

  5. tjbrewers
    Member
    Posted 2 years ago #

    Hi Andrea,

    Yes, I posted there just a little bit ago.

    Thanks, Tonya

  6. You need to set the BP Root Slug constant for that, though if you have and that doesn't work, this should be fixed in the next BP release.

  7. @mercime
    Volunteer Moderator
    Posted 2 years ago #

  8. tjbrewers
    Member
    Posted 2 years ago #

    Marked it as issue resolved.

    Thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic