Title: Custom FIELD
Last modified: August 31, 2016

---

# Custom FIELD

 *  Resolved [parentesikuadra](https://wordpress.org/support/users/parentesikuadra/)
 * (@parentesikuadra)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/custom-field-49/)
 * Hi i’ve a problem with custom field because i can’t see the mailchimp field of
   mailchimp that i need. The field exhist. How can i sync the field with the plugin?
 * I’ve read the tutorial and i add this code to theme/function.php :
 * add_filter( ‘mailchimp_sync_user_data’, function( $data, $description) {
    $data[‘
   MMERGE4’] = $description->pre_user_description; return $data; }, 10, 2 );
 * Nothing happen.
 * I need to add a custom field for DESCRIPTION WordPress FIELD.
 * Thanksss
 * [https://wordpress.org/plugins/mailchimp-for-wp/](https://wordpress.org/plugins/mailchimp-for-wp/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Thread Starter [parentesikuadra](https://wordpress.org/support/users/parentesikuadra/)
 * (@parentesikuadra)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/custom-field-49/#post-6937540)
 * I’ve solved with this :
 * add_filter( ‘mailchimp_sync_user_data’, function( $data, $user) {
    $data[‘MMERGE4’]
   = $user->description; return $data; }, 10, 2 );
 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/custom-field-49/#post-6937568)
 * Hello parentesikuadra,
 * Thanks for the update. I’m glad that the issue is resolved. Your 2nd code looks
   correct as you need to retrieve user data from user table.
 * If you run into any other issues, please feel free to let us know.
 *  [akaii](https://wordpress.org/support/users/akaii/)
 * (@akaii)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/custom-field-49/#post-6937742)
 * Hello, I am having a similar problem.
 * I wanted to create a segment in my list of those how have registered on the website
   and those are just signed up on the list. And ideally have new website registrations
   be added into that segment.
 * I decided the best way was to sync the username and create a segment within the
   list of those with a username (because it would mean they are registered on the
   website.
 * I added the following to the functions.php:
 * add_filter( ‘mailchimp_sync_user_data’, function( $data, $user) {
    $data[‘UNAME’]
   = $user->user_login; return $data; }, 10, 2 );
 * But it doesn’t seem to have been added to the fields in the “wordpress user sync
   option”.
 * I’ve added Username as a field in the Mailchimp list and assigned it UNAME as
   the mergetag.
 * In the mailchimp wordpress sync settings, the drop down shows me email, First
   name, and last name.
 * Any ideas?
 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/custom-field-49/#post-6937744)
 * Hey Akaii,
 * Please note, to sync username to your MailChimp.com list, you do not need to 
   use our filter.
    1. First go to “MailChimp for WP” in your WordPress backend and click on the “Renew
       MailChimp Lists” button. This will pull in data about the new UNAME field you
       have created.
    2. Next to go “MailChimp for WP > User Sync” and and in the additional fields section,
       add `user_login` in the “User field” and then from the dropdown select field
       next to it, please select the “UNAME” field you have created.
    3. Click Save changes and you are good to go.
 * This should now sync the username of a user to the new field you have created
   in your MailChimp.com List.
 *  [akaii](https://wordpress.org/support/users/akaii/)
 * (@akaii)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/custom-field-49/#post-6937745)
 * Thank you! It worked!
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/custom-field-49/#post-6937746)
 * I’m glad it did Akaii, thanks for letting us know!
 * Should you have a quick minute to spare, a [plugin review here on WordPress.org](http://wordpress.org/support/view/plugin-reviews/mailchimp-for-wp)
   would make us quite happy. 🙂
 *  Thread Starter [parentesikuadra](https://wordpress.org/support/users/parentesikuadra/)
 * (@parentesikuadra)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/custom-field-49/#post-6937749)
 * Hello, i’ve another problem… If i delete user in my wordpress i would like that
   this disappear also from my list on mailchimp.. How is this possible ?
 * Thanks.
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/custom-field-49/#post-6937750)
 * Hi parentesikuadra,
 * This is actually a known bug in the current version. We’ll be pushing out an 
   update that fixes this early next week!
 * PS. If you’re in a hurry, you can download the development version of the plugin
   from GitHub: [https://github.com/ibericode/mailchimp-sync](https://github.com/ibericode/mailchimp-sync)
 *  Thread Starter [parentesikuadra](https://wordpress.org/support/users/parentesikuadra/)
 * (@parentesikuadra)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/custom-field-49/#post-6937771)
 * Hi Danny, it should remove right now from the list the user that i’ve not on 
   wordpress ?
 * I’ve tried to sync but still have deleted WP users in my Mailchimp list..
 * Thankssss
 *  Thread Starter [parentesikuadra](https://wordpress.org/support/users/parentesikuadra/)
 * (@parentesikuadra)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/custom-field-49/#post-6937776)
 * The plugin also right now, doens’t update automatically the field when i modify
   them on my WordPress user section…
 * Have you some idea?
    Thanks
 *  Thread Starter [parentesikuadra](https://wordpress.org/support/users/parentesikuadra/)
 * (@parentesikuadra)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/custom-field-49/#post-6937802)
 * Hi Danny, i still continue having the same issue.
    Did you find a solution ?
 * Thank you
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/custom-field-49/#post-6937808)
 * Hi parentesikuadra,
 * Sorry for my delay in getting back to you. Can you please make sure that you’re
   on the latest version of both [MailChimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/)
   itself and the [MailChimp User Sync](https://wordpress.org/plugins/mailchimp-sync/)
   add-on?
 * If you are, are you sure that:
 * – Delated users are not unsubscribed from your MailChimp list
    – Updating a user
   profile in WordPress doesn’t update the MailChimp subscriber, even though your**
   MailChimp > User Sync** settings are configured.
 * If either of those issues are still happening, do you see anything in your Debug
   Log on **MailChimp for WP > Other**?
 * Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)

 The topic ‘Custom FIELD’ is closed to new replies.

 * ![](https://ps.w.org/mailchimp-for-wp/assets/icon-256x256.png?rev=1224577)
 * [MC4WP: Mailchimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-wp/reviews/)

 * 12 replies
 * 4 participants
 * Last reply from: [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/custom-field-49/#post-6937808)
 * Status: resolved