Title: User Sync problem with additional fields
Last modified: August 31, 2016

---

# User Sync problem with additional fields

 *  Resolved [anagio](https://wordpress.org/support/users/anagio/)
 * (@anagio)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/user-sync-problem-with-additional-fields/)
 * Hi,
 * Trying to get the User Sync to work without success.
 * We have one additional field :
 * drop down MMERGE3 |* or *|MERGE3|*
 * which has 3 options Members, Members unsubscribed and Non members.
 *  Send Additional Fields “Member” to Member Status (drop down option of my MailChimp
   fields) without success, all I get is
 * [2016-02-22 15:25:21] ERROR: User Sync > Error subscribing user 5: MMERGE3 must
   be provided – Please enter a value
 * How do I need to set this up?
 * Regards
    Peter
 * [https://wordpress.org/plugins/mailchimp-for-wp/](https://wordpress.org/plugins/mailchimp-for-wp/)

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

 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/user-sync-problem-with-additional-fields/#post-7093691)
 * Hello Peter,
 * Can you please share a screenshot of your “Sync” setting page?
 *  Thread Starter [anagio](https://wordpress.org/support/users/anagio/)
 * (@anagio)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/user-sync-problem-with-additional-fields/#post-7093814)
 * Sure:
 * [http://anagio.com/wp-content/uploads/2016/02/sync-issue.png](http://anagio.com/wp-content/uploads/2016/02/sync-issue.png)
 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/user-sync-problem-with-additional-fields/#post-7093827)
 * Hello anagio,
 * I would need to check few more things. Since this is a public forum it would 
   be best to share those details privately. Can you please email us at “support
   [@mc4wp](https://wordpress.org/support/users/mc4wp/).com” with a link to this
   post?
 *  Plugin Contributor [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/user-sync-problem-with-additional-fields/#post-7093830)
 * Hello Anagio,
 * Can you please try adding this code to the “functions.php” file in your active
   theme:
 *     ```
       add_filter( 'mailchimp_sync_user_data', function( $data, $user ) {
          $data['MMERGE3'] = 'Member';
          return $data;
       }, 10, 2 );
       ```
   
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/user-sync-problem-with-additional-fields/#post-7093831)
 * Hi Peter,
 * On the settings screen, you’ve entered “Member” and configured the plugin to 
   send this to the MailChimp MMERGE3 / Member Type field. However, this will actually
   tell the plugin to look for a user profile field called “Member” and send the
   value of that field to MailChimp, so it will not work.
 * Removing that setting from the field map and adding the following code snippet
   to your theme its **functions.php** file should do the trick.
 *     ```
       add_filter( 'mailchimp_sync_user_data', function( $data, $user ) {
          $data['MMERGE3'] = 'Member';
          return $data;
       }, 10, 2 );
       ```
   
 * Hope that helps. If not, let me know!
 *  Thread Starter [anagio](https://wordpress.org/support/users/anagio/)
 * (@anagio)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/user-sync-problem-with-additional-fields/#post-7093833)
 * Hi,
 * tried that but gor
 * Parse error: syntax error, unexpected ‘&’, expecting ‘]’ in /var/sites/s/surbitonbusiness.
   com/public_html/wp-content/themes/franz-josef-child-01/functions.php on line 
   64
 * this was added, the line with $data[ is #64
 *     ```
       add_filter( 'mailchimp_sync_user_data', function( $data, $user ) {
          $data['MMERGE3'] = 'Member';
          return $data;
       }, 10, 2 );
       ```
   
 *  Thread Starter [anagio](https://wordpress.org/support/users/anagio/)
 * (@anagio)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/user-sync-problem-with-additional-fields/#post-7093834)
 * Sorry, copied from an email where the code was shown as
 * add_filter( 'mailchimp_sync_user_data', function( $data, $user ) {
    $data['MMERGE3']
   = 'Member'; return $data; }, 10, 2 );
 * Thanks for the fix, it is working now.
 *  Thread Starter [anagio](https://wordpress.org/support/users/anagio/)
 * (@anagio)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/user-sync-problem-with-additional-fields/#post-7093835)
 * Paste didn’t quite work,
 * it showed :
 * & # 0 3 9 (without the blanks) as soon as I pasted the code from the previous
   posts here, it worked a treat.

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

The topic ‘User Sync problem with additional fields’ 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/)

 * 8 replies
 * 3 participants
 * Last reply from: [anagio](https://wordpress.org/support/users/anagio/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/user-sync-problem-with-additional-fields/#post-7093835)
 * Status: resolved