Reason #394 Why I love WordPress

Saturday, January 16th, 2010

I am in the middle of a project and will keep this short… but  wanted to mention again how great WP works as a basic CMS.

For instance, you can create custom meta boxes:

add_action(‘admin_menu’, ‘create_color_meta’);

add_action(‘save_post’, ‘save_color_meta’);

These replace the need to have the client use the Custom Field box – in fact, feel free to delete the Custom Field box:


For this project I created two custom Meta boxes. The top one allows the client to change the background color (it even verifies the hex code). The bottom one allows the inclusion of a custom Flickr Set. It actually captures 2 fields, the type and the set ID.

Note: These are not plugins – it’s just extra code placed in functions.php:

Leave a Reply

You know you want to...