I am attempting to give a custom publish type for 'surgeons' regrettably theres like 6 sections i have to add which have to be wealthy text and never plain text for images, etc. this is exactly what i presently have.

I've all of the plain text fields working fine however i have to add all wealthy text ones.

Setup various structures on after sales

function personal_meta() {
  global $post;
  $custom = get_post_custom($post->ID);

  $email =   $custom["email"][0];
  $phone =   $custom["phone"][0];
  $address = $custom["address"][0];
  $website = $custom["website"][0];

  <p><label>Email:</label><br />
  <input type="text" name="email" value="<?php echo $email; ?>" /></p>

  <p><label>Phone - with extension. i.e. (805) 555-2323 Ext 234</label><br />
  <input type="text" name="phone" value="<?php echo $phone; ?>" /></p>

  <p><label>Address:</label><br />
  <textarea cols="50" rows="4" name="address"><?php echo $address; ?></textarea></p>

    <p><label>Website - BEGINNING WITH http://</label><br />
  <input type="text" name="website" value="<?php echo $website; ?>" /></p>


heres the code in order to save it

add_action('save_post', 'save_details')

function save_details(){
  global $post;
  update_post_meta($post->ID, "email", $_POST["email"]);
  update_post_meta($post->ID, "phone", $_POST["phone"]);
  update_post_meta($post->ID, "address", $_POST["address"]);
  update_post_meta($post->ID, "website", $_POST["website"]);

You have to add the course "theEditor" that will adding the tinyMCE editor towards the textarea.

<textarea class="theEditor" cols="50" rows="4" name="address"><?php echo $address; ?></textarea>

However, which will strip out <p> and <br> tags (no others) when saved.

To avoid draining individuals tags, you will have to try something similar to this:

<textarea class="theEditor" cols="50" rows="4" name="address">
<?php echo wpautop(get_post_meta($post->ID, 'your text area', true)); ?>