michaeluno / admin-page-framework

Facilitates WordPress plugin and theme development.
http://admin-page-framework.michaeluno.jp/
Other
337 stars 71 forks source link

How can I use a variable/function to generate checkboxes and radio buttons? #206

Closed booruguru closed 9 years ago

booruguru commented 9 years ago

If I do something like this... array( 'field_id' => 'checkbox_field', 'type' => 'checkbox', 'title' => ( 'Post Status' ), 'description' => ( 'The description for the field.', 'admin-page-framework-demo' ), 'label' => get_post_statuses() ),

...I get the appropriately labelled checkboxes, but the values do not correspond with the values defined in the array (e.g. publish, pending, etc.).

How can I work around this?

michaeluno commented 9 years ago

Hi,

but the values do not correspond with the values defined in the array (e.g. publish, pending, etc.).

I do not understand the problem. Can you elaborate on that?

michaeluno commented 9 years ago

Closing due to inactivity.