Title: Custom Fields and multiple checkboxes
Last modified: August 20, 2016

---

# Custom Fields and multiple checkboxes

 *  [silisav](https://wordpress.org/support/users/silisav/)
 * (@silisav)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/custom-fields-and-multiple-checkboxes/)
 * I have created a custom post type named company which I need to get some data
   from another custom post type named people. Specifically, I want to display in
   the company post type in edit mode a list of people’s names with checkboxes that
   belong to a specific country which is a custom field in people. So I would like
   to save to a custom field an array of all the names of the people that are checked
   in the checkboxes. I don’t want to do this by having specific custom fields for
   each person, and I don’t want to use any plugins. Just php and wordpress. Below
   is what I have done so far that displays (and not saves) succesfully a checkbox
   list with those names. Finally, I am a beginner to wp so be patient 😀 Any help
   would be greatly appreciated 😀
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_

Viewing 1 replies (of 1 total)

 *  Thread Starter [silisav](https://wordpress.org/support/users/silisav/)
 * (@silisav)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/custom-fields-and-multiple-checkboxes/#post-2365978)
 * Code in pastebin [http://pastebin.com/RmkfPAQY](http://pastebin.com/RmkfPAQY)

Viewing 1 replies (of 1 total)

The topic ‘Custom Fields and multiple checkboxes’ is closed to new replies.

## Tags

 * [checkboxes](https://wordpress.org/support/topic-tag/checkboxes/)
 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)
 * [save](https://wordpress.org/support/topic-tag/save/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [silisav](https://wordpress.org/support/users/silisav/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/custom-fields-and-multiple-checkboxes/#post-2365978)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
