This might be kind of simple, but I couldn't find a way to do so in the WP docs. My plugin currently uses custom fields for things I could just have radio buttons/check boxes for each post. How do I add a little section where I can have such options rather than custom fields?
Tell me more
×
WordPress Answers is a question and answer site for
WordPress developers and administrators. It's 100% free, no registration required.
|
Below is the example of a couple of checkboxes to set custom field values:
Following following hooks and functions are required for adding a meta box, see below references for more information about them: Hooks
Functions |
|||||||||||
|
|
This is call in the WordPress world a MetaBox you need to use add_meta_box() function to add your own. there is a great tutorial and a PHP class you can use in your plugin at deluxeblogtips.com I would suggest you use that for a starting point which will make your life easier. |
|||
|
|