Skip to:
Content
Pages
Categories
Search
Top
Bottom

import WP_members

  • @mlasell

    Participant

    I am already using WP_members. I would like to import them into the BuddyPress db and let BuddyPress member search include phone numbers and addresses from users meta_data. Can anyone point me in the right direction.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @henrywright

    Moderator

    BuddyPress members are the same as WordPress users as far as the database is concerned. They are all saved in the wp_users table.

    @mlasell

    Participant

    Thanks,
    Is there a way for BuddyPress to access the existing user_meta data such as address or phone number or does that need to be in the bp_xprofile_data as well? If so can I import data solely into that table or are there other tables that have to be updated in conjunction?
    And thanks again.

    @vapvarun

    Participant

    @mlasell You can https://wordpress.org/plugins/bp2wp-full-sync/ it will allow you to map xprofile field with user meta.

    @henrywright

    Moderator

    You can access that data with get_user_meta(). For example:

    $address = get_user_meta( bp_displayed_user_id(), 'address', true );
    echo $address;
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar