Two different functions that display member profile field data
[WP 3.5.2 / BP 1.8-beta1 / custom theme]
What exactly is the difference is between:
xprofile_get_field_data() & bp_get_member_profile_data()
For instance, I have a customized member/home/profile/profile-loop page and early on in the code for that page I’m running a bp_has_members() loop to show friend connections of the displayed member. After that loop runs, I’m displaying profile field data manually using bp_get_member_profile_data(). (And after that, the bp_has_profile() loop runs as normal and all the other tabs like Groups, Forums, Members are as normal.)
However, once I insert the bp_has_members() loop above my profile fields, the profile field value that I was displaying manually stop showing for fields where I used bp_get_member_profile_data() to call the value. But when I use xprofile_get_field_data(), they appear!
Just wondering what the difference is and the benefits/best practices are for using these two functions, and why one is working in this scenario and the other not.
You must be logged in to reply to this topic.