Skip to:

Questions about the concept of user profiles

  • George Notaras


    Hi all,

    I develop a metadata plugin for WordPress and was thinking about adding support for BuddyPress profiles, which basically boils down to:

    1. generating Profile metadata objects for the member pages and,
    2. use the member page URL as the post author’s URL in the metadata on WP blog posts.

    However, I’m a little puzzled with some concepts which have to do with how I should retrieve the user information in the following cases:

    1. BP Extended Profiles component deactivated.

    In this case, the member page displays information from the WP user profile.

    2. BP Extended Profiles component enabled.

    In this case, the member page displays information *only* from the BP Extended Profile.


    Is there a common API that can be used in both cases to retrieve user info? Are the BP users different users or, when used as a plugin, WP users and BP users are the same?

    Can the ‘Profile Sync’ setting complicate the retrieval of the user information?

    Thanks in advance,

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

  • shanebp


    Tricky task… I don’t envy your use case testing!

    BP uses the WP user – but stores profile data separately. But some fields are duplicated – like name.

    You may have to write profile data to both user meta and xprofile tables.
    And then use a conditional re whether the BP Extended Profiles component is enabled.
    If it isn’t, then pull from user meta, etc.

    More info:

    xprofile_sync_wp_profile() syncs Xprofile data (nickname, first name and last name) to the standard built in WordPress profile data.

    xprofile_sync_bp_profile() syncs the standard built in WordPress profile data to XProfile.

    George Notaras


    Hi, thank you for this information. It has been helpful. My BP IQ is quite low at the moment but I’m working on it. 🙂

    George Notaras


    Is it safe to assume that the ID of a WP user (post author) is always the same as the BP user ID?



    There is no BP user_id.
    BP uses the ID as found in the WP users table.
    BP has functions for getting that user id in different contexts: logged_in, displayed, etc.

    George Notaras


    @shanebp: Great! Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Questions about the concept of user profiles’ is closed to new replies.
Skip to toolbar