Title: Subscription Form Bug
Last modified: April 23, 2025

---

# Subscription Form Bug

 *  Resolved [Cognisant_2000](https://wordpress.org/support/users/cognisant_2000/)
 * (@cognisant_2000)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/subscription-form-bug/)
 * Hi Folks
 * There appears to be a bug in your plug-in.
 * The order of fields set up in MailChimp do not appear on the website. For example,
   Surname is showing as the last field instead of the field after the name.
 * We have fixed this by adding a code to the plug-in but of course every time the
   plug-in gets updated, this code gets overwritten and we have to add it again.
 * Please can you test this and see if you can fix it in your next release?
 * This is the problem:
 * In the file plugins/mailchimp/mailchimp_widget.php in line 391 you have
   `<div
   class="mc_merge_var" style="order:'.$data['display_order'].'">`
 * We have added `style="order:'.$data['display_order'].'"`
 * Regards
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsubscription-form-bug%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Dharmesh Patel](https://wordpress.org/support/users/dharm1025/)
 * (@dharm1025)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/subscription-form-bug/#post-18433880)
 * Hi [@cognisant_2000](https://wordpress.org/support/users/cognisant_2000/),
 * Thanks for reporting the issue.
 * In the recent release (1.7.0), we updated the Subscribe Form block, which now
   lets you reorder form fields, edit form labels, and more. You can use the block
   to arrange the fields as needed.
 * ![](https://i0.wp.com/i.imgur.com/PK9tx8u.gif?ssl=1)
 * 
   If you’re still using the old widget or shortcode, you can fix the field order
   by adding the code snippet below to your theme’s `functions.php` file. This will
   ensure your changes aren’t overwritten during plugin updates. However,** we still
   recommend switching to the block**. Please let us know if you run into any difficulties
   setting it up.
 *     ```wp-block-code
       add_filter( 'option_mc_merge_vars', function( $value ) {	if ( empty( $value) || ! is_array( $value ) ) {		return $value;	}	// Reorder the merge vars by display order.	usort($value, function ($a, $b) {		return $a['display_order'] <=> $b['display_order'];	});	return $value;} );
       ```
   
 * We’ve also created a GitHub [issue](https://github.com/mailchimp/wordpress/issues/150)
   to address this within the plugin itself.
 * Thanks!
 *  Thread Starter [Cognisant_2000](https://wordpress.org/support/users/cognisant_2000/)
 * (@cognisant_2000)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/subscription-form-bug/#post-18436128)
 * Thanks for your quick reply.
 * That has fixed it.
 * Regards
 *  Plugin Support [Jeffrey Paul](https://wordpress.org/support/users/jeffpaul/)
 * (@jeffpaul)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/subscription-form-bug/#post-18436328)
 * [@cognisant_2000](https://wordpress.org/support/users/cognisant_2000/) great 
   to hear things are working as expected, thanks for confirming! If you have a 
   moment to [leave a positive review](https://wordpress.org/support/plugin/mailchimp/reviews/#new-post),
   that would be greatly appreciated.
 *  Thread Starter [Cognisant_2000](https://wordpress.org/support/users/cognisant_2000/)
 * (@cognisant_2000)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/subscription-form-bug/#post-18436964)
 * Hi [@jeffpaul](https://wordpress.org/support/users/jeffpaul/)
 * I would be very happy to leave a review for you but the link you have provided
   is not for this plug-in.
 * Regards
 *  Plugin Support [Jeffrey Paul](https://wordpress.org/support/users/jeffpaul/)
 * (@jeffpaul)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/subscription-form-bug/#post-18437265)
 * [@cognisant_2000](https://wordpress.org/support/users/cognisant_2000/) the link
   I shared is for Mailchimp List Subscribe Form: [https://wordpress.org/support/plugin/mailchimp/reviews/#new-post](https://wordpress.org/support/plugin/mailchimp/reviews/#new-post).
   Perhaps you’re thrown off by the fact it has a shorter slug of `mailchimp` only?

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

The topic ‘Subscription Form Bug’ is closed to new replies.

 * ![](https://ps.w.org/mailchimp/assets/icon.svg?rev=3156997)
 * [Mailchimp List Subscribe Form](https://wordpress.org/plugins/mailchimp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp/reviews/)

## Tags

 * [field-order](https://wordpress.org/support/topic-tag/field-order/)
 * [subscription form](https://wordpress.org/support/topic-tag/subscription-form/)

 * 5 replies
 * 3 participants
 * Last reply from: [Jeffrey Paul](https://wordpress.org/support/users/jeffpaul/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/subscription-form-bug/#post-18437265)
 * Status: resolved