title: How to get Text Area in WordPress posts section?
body: <p>I need to change this code to implement "More info" field as a text field in my WordPress post section.</p>
  
  <p>The "More info" field looks like this: </p>
  
  <p><a href="https://i.stack.imgur.com/Sstp7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Sstp7.jpg" alt="More info"></a></p>
  
  <p>I use <code>smartmetabox</code>. It has 2 files:</p>
  
  <p><code>textarea.php</code>:</p>
  
  <pre><code>&lt;textarea name="&lt;?php echo $id?&gt;" id="&lt;?php echo $id?&gt;" rows="5" cols="100" class="custom"&gt;&lt;?php echo $value?&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p><code>text.php</code>:</p>
  
  <pre><code>&lt;input type="text" name="&lt;?php echo $id?&gt;" id="&lt;?php echo $id?&gt;" value="&lt;?php echo $value?&gt;" class="regular-text" /&gt;
  </code></pre>
  
  <p>And <code>my_file.php</code> code is:</p>
  
  <pre><code>&lt;?php
  
  add_action( 'add_meta_boxes', 'cd_meta_box_add' );
  
  function cd_meta_box_add()
  
  {
  
  add_meta_box( 'my-meta-box-id', __('Information', 'addict'), 'cd_meta_box_cb', 'post', 'normal', 'high' );
  
  }
  
  function cd_meta_box_cb( $post )
  
  {
  
  $values = get_post_custom( $post-&gt;ID );
  
  
  $creteria_1_text = isset( $values['creteria_1_text'] ) ? esc_attr( $values['creteria_1_text'][0] ) : '';
  
  
  $check = isset( $values['my_meta_box_check'] ) ? esc_attr( $values['my_meta_box_check'][0] ) : '';
  
  wp_nonce_field( 'my_meta_box_nonce', 'meta_box_nonce' );
  
  ?&gt;
  
  
  &lt;p&gt;
  
  &lt;label for="creteria_1_text"&gt;&lt;b&gt;&lt;?php _e("More info, 'addict') ?&gt;&lt;/b&gt;&lt;/label&gt;
  
  &lt;input style="width:85%" type="text" name="creteria_1_text" id="creteria_1_text" value="&lt;?php echo $creteria_1_text; ?&gt;" /&gt;
  &lt;/p&gt;
  
  
  
  &lt;?php
  
  }
  
  add_action( 'save_post', 'cd_meta_box_save' );
  
  function cd_meta_box_save( $post_id )
  
  {
  
  // Bail if we're doing an auto save
  
  if( defined( 'DOING_AUTOSAVE' ) &amp;&amp; DOING_AUTOSAVE ) return;
  
  // if our nonce isn't there, or we can't verify it, bail
  
  if( !isset( $_POST['meta_box_nonce'] ) || !wp_verify_nonce( $_POST['meta_box_nonce'], 'my_meta_box_nonce' ) ) return;
  
  // if our current user can't edit this post, bail
  
  if( !current_user_can( 'edit_post' ) ) return;
  
  // now we can actually save the data
  
  $allowed = array(
  
  'a' =&gt; array( // on allow a tags
  
  'href' =&gt; array() // and those anchords can only have href attribute
  
  )
  
  );
  
  // Probably a good idea to make sure your data is set
  
  if( isset( $_POST['creteria_1_text'] ) )
  
  update_post_meta( $post_id, 'creteria_1_text', wp_kses( $_POST['creteria_1_text'], $allowed ) );
  
  }
  
  // function for show rating content
  
  //$key_1_value = get_post_meta($post-&gt;ID, 'my_meta_box_text', true);
  
  ?&gt;
  </code></pre>