Skip to:
Content
Pages
Categories
Search
Top
Bottom

import WP_members


  • mlasell
    Participant

    @mlasell

    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)

  • Henry Wright
    Moderator

    @henrywright

    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

    @mlasell

    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.


    Varun Dubey
    Participant

    @vapvarun

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


    Henry Wright
    Moderator

    @henrywright

    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