Title: Using data in bp_xprofile_data
Last modified: February 26, 2017

---

# Using data in bp_xprofile_data

 *  [cbloom1919](https://wordpress.org/support/users/cbloom1919/)
 * (@cbloom1919)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/using-data-in-bp_xprofile_data/)
 * 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. How do I map the data 
   collected in the user registration form to populate the usermeta table?

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/using-data-in-bp_xprofile_data/#post-8850333)
 * It’s inadvisable to create redundant information. When you need that BP user 
   data, just get it from the source table. Don’t put it somewhere else that will
   not be updated when the original source changes. There’s likely a BP function
   to do this, you’d best inquire in their [dedicated forum](https://buddypress.org/support/)
   for that. If all else fails it can be queried with SQL and the global $wpdb object.
 * You can create your own shortcode that does this, so other than the name not 
   being in the dropdown it would basically work the same way. There may even be
   a hack to add such a shortcode to the dropdown without it being a true merge 
   tag. I wouldn’t be able to suggest how such a hack could be implemented because
   Gravity Forms source code is not publicly available.

Viewing 1 replies (of 1 total)

The topic ‘Using data in bp_xprofile_data’ is closed to new replies.

## Tags

 * [user meta data](https://wordpress.org/support/topic-tag/user-meta-data/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/using-data-in-bp_xprofile_data/#post-8850333)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
