function show() { add_action('admin_enqueue_scripts', array(&$this, 'enqueue')); add_action('admin_head', array(&$this, 'add_custom_scripts')); global $custom_meta_fields, $post; // Use nonce for verification echo '<input type="hidden" name="custom_meta_box_nonce" value="' . wp_create_nonce(basename(__FILE__)) . '" />'; // Begin the field table and loop echo '<table class="form-table">'; foreach ($this->_meta['fields'] as $field) { // get value of this field if it exists for this post $meta = get_post_meta($post->ID, $field['id'], true); // begin a table row with echo '<tr><th>'; jelli_fields::label($field['id'], $field['label']); echo '</th><td>'; jelli_fields::field($field, $meta); echo '<br />'; jelli_fields::description($field['desc']); echo '</td></tr>'; } // end foreach echo '</table>'; // end table }