title: get custom field value from taxonomy in wordpress
body: <p>i make a custom field in categories, it save and update data successfully, but i want to show the value of custom field data in archive page, i search a lot about this but in vain
  Please help me
  here is my code</p>
  
  <p>Create custom field:</p>
  
  <pre><code>add_action ( 'category_add_form_fields', 'extra_field');
  add_action ( 'category_edit_form_fields', 'extra_field');
  function extra_field($term) {    //check for existing featured ID
      $t_id = $term-&gt;term_id;
      $term_meta = get_option( "taxonomy_$t_id");
  ?&gt;
      &lt;table width="100%" border="0" cellspacing="3" cellpadding="0" style="margin-bottom:20px;"&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;strong&gt;Image&lt;/strong&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;input type="text" size="40" name="term_meta[custom_term_meta]" id="term_meta[custom_term_meta]" value="&lt;?php echo esc_attr( $term_meta['custom_term_meta'] ) ? esc_attr( $term_meta['custom_term_meta'] ) : ''; ?&gt;" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;p&gt;A quick brown fox jumps over the lazy dog.&lt;/p&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;?php
  }
  </code></pre>
  
  <p>Save / Update data:</p>
  
  <pre><code>function save_taxonomy_custom_meta( $term_id ) {
      if ( isset( $_POST['term_meta'] ) ) {
          $t_id = $term_id;
          $term_meta = $_POST['term_meta'];
  
          // Save the option array.
          update_option( "taxonomy_$t_id", $term_meta );
      }
  }
  add_action( 'edited_category', 'save_taxonomy_custom_meta' ); 
  add_action( 'create_category', 'save_taxonomy_custom_meta' );
  </code></pre>
  
  <p>One more thing, can i make an extra field in db in wp_terms, because it save in wp_options</p>