I have a Gravity Form user registration that collects user profile fields that are displayed in the user’s BuddyPress profile. I also have a Gravity Form user submission form where a user submits information and a new custom post type post is created using merge tags. I need for some of the post author’s profile data to be attached to the post. I think I can do this using merge tags of the user’s meta data but when I look at where the user’s profile information from BuddyPress is stored, it is in the “_bp_xprofile_data” table, not the usermeta table, so it doesn’t appear in the list of available merge tags. Is there a BuddyPress function to call the user’s profile data directly from the source table and place it into the custom post type?
Thank you for the response. I am trying to piece this together and am wondering- on the page that you linked me to, do I use the “Usage” code, paste it in my theme’s function.php file and use it each time I define a profile field that I need to call? If I use user_id = -1, will it just return data for the currently logged in user? Also, once the query returns the profile fields, how do I get it attached to my post? Where do I give it a parameter name?
(I’m new to php, so apologies if my questions are unclear/not using the correct terminology).