Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • 3diuk
    Participant

    @3diuk

    What i’d like to do now is get the new bio information onto the

    renderwars.xyz/members/michael page, instead of on the

    renderwars.xyz/members/michael/profile page.

    I think this would be a good idea as this is where people will land when clicking on a persons name.


    3diuk
    Participant

    @3diuk

    Ok, I found the problem. Clicking on Author’s names was actually linking to:

    renderwars.xyz/author/michael

    when it should have been linking to:

    renderwars.xyz/members/michael

    for buddypress to work properly I had to create a child theme and then add a redirect rule in the child themes functions.php file.

    For anyone else with the same problem who might not be too good at php etc, here’s the instructins I found to help me:

    Creating a child theme:

    https://codex.wordpress.org/Child_Themes

    and then putting this code in the function.php:

    add_filter( 'author_link', 'change_author_link', 10, 1  );
    
      function change_author_link($link) {
       $username=get_the_author_meta('user_nicename');
    
      $link = 'http://example.com/members/' . $username;
       return $link;
     }

    3diuk
    Participant

    @3diuk

    Thanks, with your advice I was able to add the fields to the users edit profile page, but I dont see a way of getting the information to appear on their profile page when others view it.

    Can you advise?

Viewing 3 replies - 1 through 3 (of 3 total)
Skip to toolbar