wp-shortcake / shortcake

Shortcake makes using WordPress shortcodes a piece of cake.
GNU General Public License v2.0
664 stars 142 forks source link

Multi-select via checkbox? #460

Open khromov opened 9 years ago

khromov commented 9 years ago

The checkbox field type only seems to work with a single checkbox, but there does not seem to be a way to show and let the user select multiple values.

To be clear, I'm not looking to select posts, taxonomies or anything fancy like that, just let the user select from a number of fixed choices and then put the keys into a shortcode parameter (comma separated if multiple selections.)

Any way to do this?

@danielbachhuber

danielbachhuber commented 9 years ago

You'd either need to register checkboxes for each option, or write your own custom attribute field to handle this case. We can leave this open as a potential enhancement, though.

khromov commented 9 years ago

Great. I'll try to get a PR going for a checkboxes field type.

phh commented 8 years ago

@khromov Any update? Sounds like it would make a great feature to this plugin!