Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • fusionbudd
    Participant

    @fusionbudd

    Two ways to use your BP profile pic as your WordPress avatar:
    1. Plugins:
    Install and activate a plugin like “BuddyPress Default Avatar” or “BuddyPress Avatar Sync.”
    These plugins automatically sync your BP profile photo with your WordPress avatar, making it a simple and hands-off solution.

    2. Custom code:
    If you prefer a more technical approach, you can add code to your theme’s functions.php file.
    This code snippet will enable syncing of the two avatars:

    PHP
    function bp_avatar_sync($user_id) {
    // Get BP profile picture URL
    $bp_avatar_url = bp_core_fetch_avatar(array(‘item_id’ => $user_id, ‘type’ => ‘full’));

    // Update WordPress avatar URL
    update_user_meta($user_id, ‘user_avatar’, $bp_avatar_url);
    }
    add_action(‘bp_core_avatar_uploaded’, ‘bp_avatar_sync’);

    Remember, both methods achieve the same result. Choose the method that best suits your technical skills and preferences.


    fusionbudd
    Participant

    @fusionbudd

    this issue could stem from a configuration problem with BuddyPress, a plugin conflict (even though it works on your staging version), or a persistent caching issue.

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