ID, '_artichoke_template_css_key', true ); if($css == "") { $css = "\n"; } ?>

Template HTML

post_content) ?>

Template CSS

$post_id, 'post_content' => $html ) ); // re-hook this function add_action( 'save_post', 'artichoke_save_template_meta_box_data' ); } if (isset( $_POST['artichoke_template_css_field'] ) ) { $css = sanitize_post_field( 'post_content', $_POST['artichoke_template_css_field'], $post_id, 'raw' ); // Update the meta field in the database. update_post_meta( $post_id, '_artichoke_template_css_key', $css ); } } add_action( 'save_post', 'artichoke_save_template_meta_box_data' );