Title: kschat's Replies | WordPress.org

---

# kschat

  [  ](https://wordpress.org/support/users/kschat/)

 *   [Profile](https://wordpress.org/support/users/kschat/)
 *   [Topics Started](https://wordpress.org/support/users/kschat/topics/)
 *   [Replies Created](https://wordpress.org/support/users/kschat/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/kschat/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/kschat/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/kschat/engagements/)
 *   [Favorites](https://wordpress.org/support/users/kschat/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Checkbox state won't save in widget](https://wordpress.org/support/topic/checkbox-state-wont-save-in-widget/)
 *  Thread Starter [kschat](https://wordpress.org/support/users/kschat/)
 * (@kschat)
 * [14 years ago](https://wordpress.org/support/topic/checkbox-state-wont-save-in-widget/#post-2783801)
 * Okay, after much tinkering and ‘hacking’ I found out why it wasn’t saving and
   how to fix it. It wasn’t saving because the values were saving to the post variable
   with a key equal to the value that is stored in my categories variable label 
   node (worded it oddly, sorry ha). Anyway I did a ‘quick fix’ to get it to work
   so I have something to show to my boss at my meeting today. The fix was setting
   the name parameter to this:
 * `name="<?php echo "widget-image-uploader-id[2][categories][" . $i . "][selected]";?
   >"`
 * My long term fix is to create a categories class and make a list of that. Thank
   you very much for your help!
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Checkbox state won't save in widget](https://wordpress.org/support/topic/checkbox-state-wont-save-in-widget/)
 *  Thread Starter [kschat](https://wordpress.org/support/users/kschat/)
 * (@kschat)
 * [14 years ago](https://wordpress.org/support/topic/checkbox-state-wont-save-in-widget/#post-2783781)
 * Whoa, you’re right, whoops. I added value=”1″ for testing purposes right now 
   and I’m still getting the same results I explained above.
 * Edit: Forgot to end my comment section at the top of my file, here’s an updated
   version. [http://pastebin.com/2Bws78rr](http://pastebin.com/2Bws78rr)

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