Add Thesis Meta Boxes to Custom Post Types

This document is deprecated! The information on this page refers to a Thesis version that is now obsolete. Please visit the Thesis Docs for current documentation.

If you’re using Custom Post Types in your WordPress installation, you may also want to have the Thesis Meta options (SEO Details, Post Images and Thumbnails, Multimedia Box, etc.) available for these custom post types as well. Here’s the code you need to add to your custom_functions.php file to enable these Meta Boxes:

function thesis_for_custom_post_types() {
    $post_options = new thesis_post_options;
	foreach ($post_options->meta_boxes as $meta_name => $meta_box) {
        add_meta_box($meta_box['id'], $meta_box['title'], array('thesis_post_options', 'output_' . $meta_name . '_box'), 'custom_type_name', 'normal', 'high');