RW Meta Box Class WordPress Plugin | Ed Nailor
This plugin uses the Meta Box class as created by Rilwis and adds the capabilities to WordPress as a plugin.
Rilwis created a great bit of code that allows developers to quickly and easily add custom meta boxes for all post types (pages, posts, custom). The way Rilwis set this up, you simply copy his code to your theme’s functions.php file and then set up the boxes. The setup is fairly straight forward for any level of developer as long as you read the documentation.
The script includes awesome features beyond just adding a text input box. This also taps into the built in WordPress file upload system to allow users to upload images and files to a custom meta box, includes an HTML editor for the custom meta box and much more.
There are a couple problems with simply adding the script to a theme’s functions.php file:
With the plugin, the script is loaded before the themes functions.php files are activated, so the class if available at both the parent and the child theme level. This also allows the script to be more portable between themes (although the new theme must support any custom post types from the old theme.)
if( function_exists( 'rw_meta_box' ) {
** Your Meta Box Code here **
}
For full details on the RW Meta Box Class, view full documentation at http://www.deluxeblogtips.com/p/meta-box-script-for-wordpress.html
The plugin is currently being submitted to the WordPress Plugin repository.
Until then, you can download the plugin here.