Title: Text/input fields not saving &#8220;0&#8221; as value
Last modified: August 5, 2022

---

# Text/input fields not saving “0” as value

 *  Resolved [wpublish](https://wordpress.org/support/users/wpublish/)
 * (@wpublish)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/text-input-fields-not-saving-0-as-value/)
 * This conditional from get_posted_field() function forces “0” value not be accepted
   for any input field:
 * return $value ? $this->sanitize_posted_field( $value, $field[‘sanitizer’] ) :”;
 * Isn’t it an issue? How can it be fixed?

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

 *  Plugin Support [Animesh Gaurav](https://wordpress.org/support/users/bizanimesh/)
 * (@bizanimesh)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/text-input-fields-not-saving-0-as-value/#post-15899311)
 * Hi there,
 * Could you please provide us with a little more detail on where you are getting
   error on putting 0 as value? A screenshot would be super helpful as well.
 * To upload and share a screenshot, you can use this platform: [https://snipboard.io](https://snipboard.io)
 * Details on how to make a screenshot can be found [here](https://wordpress.com/support/make-a-screenshot).
 * I’m looking forward to hearing from you. 🙂
 *  Thread Starter [wpublish](https://wordpress.org/support/users/wpublish/)
 * (@wpublish)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/text-input-fields-not-saving-0-as-value/#post-15906460)
 * Hi, I’m a theme developer.
 * The issue will happen for any ordinary <input> field that I create for the theme:
 * [https://snipboard.io/XFefqC.jpg](https://snipboard.io/XFefqC.jpg)
 * Regards,
    Eduardo
 *  Plugin Contributor [Stef (a11n)](https://wordpress.org/support/users/erania-pinnera/)
 * (@erania-pinnera)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/text-input-fields-not-saving-0-as-value/#post-15922775)
 * Hello [@wpublish](https://wordpress.org/support/users/wpublish/),
 * We have asked our developers to take a look at this; we’ll circle back to you
   as soon as we have any input from them.
 * Thanks in advance for the patience!
 *  [Mohamed Mehdi Benchalal](https://wordpress.org/support/users/muffinpeace/)
 * (@muffinpeace)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/text-input-fields-not-saving-0-as-value/#post-15947012)
 * Hi [@wpublish](https://wordpress.org/support/users/wpublish/)
 * Thanks for your patience! A Github issue was created after further testing by
   our team so that a fix will be released; however, we don’t have any precise ETA
   of when this will be shipped, so I’d suggest following the issue below:
 * [https://github.com/Automattic/WP-Job-Manager/issues/2312](https://github.com/Automattic/WP-Job-Manager/issues/2312)
 * Thank you for your report 🙂

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

The topic ‘Text/input fields not saving “0” as value’ is closed to new replies.

 * ![](https://ps.w.org/wp-job-manager/assets/icon-256x256.gif?rev=2975257)
 * [WP Job Manager](https://wordpress.org/plugins/wp-job-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-job-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-job-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-job-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-job-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-job-manager/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [Mohamed Mehdi Benchalal](https://wordpress.org/support/users/muffinpeace/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/text-input-fields-not-saving-0-as-value/#post-15947012)
 * Status: resolved