Skip to:

Get user data from another table

  • CommonEasy


    Hi there,

    I have a profile field which i hided from the edit profile page, so it will basically function as a view only field. The data for this field is getting from another table (t2) i created in MYSQL, that data in t2 is generated from data from other profile fields from wp_bp_xprofile_data. (Data from all the users is used, you can see it has some kind of calculator. So i tried to update the wp_bp_xprofile_data table with a procedure triggered after an update on the profile fields, unfortunately this doesn’t seem to work ( So now i am asking if it is possible to load the data from profile field 15 directly from t2, instead of first transfer the data from t2 to wp_bp_xprofile_data? the columns from t2 are user_id | value and from wp_bp_xprofile_data are afcourse id | field_id | user_id | value. Where is the best place to start? Thanks in advance 🙂
    ps. i use BP 2.0.1. and WP 3.9.1.

  • The topic ‘Get user data from another table’ is closed to new replies.
Skip to toolbar