Title: Version 5.7 breaking forms
Last modified: December 12, 2022

---

# Version 5.7 breaking forms

 *  [webdesignerz](https://wordpress.org/support/users/webdesignerz/)
 * (@webdesignerz)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/version-5-7-breaking-forms/)
 * I’ve used Contact Form 7 for many forms over the years due to its simplicity,
   integration with Google Recaptcha, and the simple fact that it works without 
   applying its own styling. Unfortunately the recent 5.7 version upgrade has resulted
   in vertical spacing and alignment display errors on the forms. If you’re going
   to make changes to the form, you need to ensure backwards compatibility, which
   this new version doesn’t.

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

 *  [bhat](https://wordpress.org/support/users/bhat/)
 * (@bhat)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/version-5-7-breaking-forms/#post-16284432)
 * Add define(‘WPCF7_AUTOP’, false );
    to wp-config.php which will save your day.
 * [http://www.stickabat.com/article/19/contact-form-7-57-update-gives-you-space-between-form-feilds](http://www.stickabat.com/article/19/contact-form-7-57-update-gives-you-space-between-form-feilds)
    -  This reply was modified 3 years, 4 months ago by [bhat](https://wordpress.org/support/users/bhat/).
 *  [themerex](https://wordpress.org/support/users/themerex/)
 * (@themerex)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/version-5-7-breaking-forms/#post-16287797)
 * Maybe `add_filter( 'wpcf7_autop_or_not', '__return_false' );` is a better solution.
 * But this will not save those who counted on the correct wrapping of form elements
   with the <p> tag. And in the 5.7 update, even <div> tags are wrapped in <p>
 *  Thread Starter [webdesignerz](https://wordpress.org/support/users/webdesignerz/)
 * (@webdesignerz)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/version-5-7-breaking-forms/#post-16288121)
 * `define('WPCF7_AUTOP', false );` has worked for me.

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

The topic ‘Version 5.7 breaking forms’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [webdesignerz](https://wordpress.org/support/users/webdesignerz/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/version-5-7-breaking-forms/#post-16288121)