Title: [PATCH] Labels for em_checkbox_items
Last modified: August 21, 2016

---

# [PATCH] Labels for em_checkbox_items

 *  Resolved [Daedalon](https://wordpress.org/support/users/daedalon/)
 * (@daedalon)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/patch-labels-for-em_checkbox_items/)
 * 1. Open [http://demo.wp-events-plugin.com/submit-your-event/](http://demo.wp-events-plugin.com/submit-your-event/)
   
   2. Check This is a recurring event. 3. Click the name of any weekday, e.g. “Wed”.
   4. This doesn’t select the appropriate checkbox. It should.
 * The solution is to change in [em-functions.php](http://plugins.trac.wordpress.org/browser/events-manager/tags/5.5.2/em-functions.php)
   line 608 from:
 * `$output .= "<input type='checkbox' name='".esc_attr($name)."' value='".esc_attr(
   $key)."' $checked /> ".esc_html($item)."&nbsp; ";`
 * to
 * `$output .= "<input type='checkbox' id='".esc_attr($name)."-".esc_attr($key)."'
   name='".esc_attr($name)."' value='".esc_attr($key)."' $checked /><label for='".
   esc_attr($name)."-".esc_attr($key)."'> ".esc_html($item)."</label>&nbsp; ";`
 * [http://wordpress.org/plugins/events-manager/](http://wordpress.org/plugins/events-manager/)

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

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/patch-labels-for-em_checkbox_items/#post-4471233)
 * thanks, am going to let Marcus know about this.
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/patch-labels-for-em_checkbox_items/#post-4471348)
 * yes that makes it easier, thanks. rather than giving it an ID we’ll just wrap
   it in a label tag

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

The topic ‘[PATCH] Labels for em_checkbox_items’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=1039078)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/patch-labels-for-em_checkbox_items/#post-4471348)
 * Status: resolved