title: How to replace text area code into html editor in wordpress
body: <p>How can I can I edit the <strong>Text Area Code</strong> from text area into an HTML wysiwyg editor?  I know that in order to do that you need to convert it in this format. <code>&lt;?php wp_editor( $content, $editor_id, $settings = array() ); ?&gt;</code> but I couldn't figure out how to do this. </p>
  
  <p><strong>Text Area Code</strong></p>
  
  <pre><code>&lt;label&gt;&lt;?php echo $site_title; ?&gt;&lt;/label&gt;      
  &lt;input name="&lt;?php echo $name;?&gt;" id="&lt;?php echo $name;?&gt;" &lt;?php if($value){ echo 'checked="checked"';}?&gt;  value="1" type="checkbox" /&gt; 
  &lt;?php
  } elseif($type=='textarea') {
  ?&gt;
  &lt;label&gt;&lt;?php echo $site_title; ?&gt;&lt;/label&gt;
  &lt;textarea name="&lt;?php echo $name;?&gt;" id="&lt;?php echo $name;?&gt;"&gt;&lt;?php echo $value;?&gt;
  &lt;/textarea&gt;
  </code></pre>
  
  <p>after posting  this question I found out how it is implemented on my theme on other fields such as this:</p>
  
  <pre><code>&lt;textarea  name="proprty_feature" id="proprty_feature" class="textarea" rows=""  cols=""  &lt;?php if($property_feature_pkg==0){echo 'disabled="disabled"';} ?&gt; &gt;&lt;?php  if($property_feature_pkg==1){ echo esc_attr(stripslashes($proprty_feature));} ?&gt;&lt;/textarea&gt; 
              &lt;?php }else{ wp_editor( stripslashes($proprty_feature), 'proprty_feature', array( 'editor_class' =&gt; 'at-wysiwyg', 'media_buttons' =&gt; false ) );}?&gt;
  </code></pre>
  
  <p>but still <strong>cant figure out</strong> how to change the text area code into similar format.</p>