title: Get the value from a custom field in category
body: <p>I made a custom field in admin category interface named custom order. It is showing in the admin. But now I am having difficulties in <strong>getting</strong> the information from the field and echo it in <code>index.php</code>.</p>
  
  <p>If I run </p>
  
  <pre><code>$thisCat = get_category( 29);
      print_r($thisCat);
  </code></pre>
  
  <p>I don't get any information from the custom field. </p>
  
  <p><code>echo get_post_custom_values('category_custom_order', 29);</code> doesn't echo anything. </p>
  
  <p>How should I get the value from <code>category_custom_order</code>?</p>
  
  <p>Here is my code for custom field in <code>functions.php</code>:</p>
  
  <pre><code>&lt;?php
  /** Add Custom Field To Category Form */
  add_action( 'category_add_form_fields', 'category_form_custom_field_add', 10 );
  add_action( 'category_edit_form_fields', 'category_form_custom_field_edit', 10, 2 );
  
  function category_form_custom_field_add( $taxonomy ) {
  ?&gt;
  &lt;div class="form-field"&gt;
    &lt;label for="category_custom_order"&gt;Custom Order&lt;/label&gt;
    &lt;input name="category_custom_order" id="category_custom_order" type="text" value="" size="40" aria-required="true" /&gt;
    &lt;p class="description"&gt;Enter a custom order value.&lt;/p&gt;
  &lt;/div&gt;
  &lt;?php
  }
  
  function category_form_custom_field_edit( $tag, $taxonomy ) {
  
      $option_name = 'category_custom_order_' . $tag-&gt;term_id;
      $category_custom_order = get_option( $option_name );
  
  ?&gt;
  &lt;tr class="form-field"&gt;
    &lt;th scope="row" valign="top"&gt;&lt;label for="category_custom_order"&gt;Custom Order&lt;/label&gt;&lt;/th&gt;
    &lt;td&gt;
      &lt;input type="text" name="category_custom_order" id="category_custom_order" value="&lt;?php echo esc_attr( $category_custom_order ) ? esc_attr( $category_custom_order ) : ''; ?&gt;" size="40" aria-required="true" /&gt;
      &lt;p class="description"&gt;Enter a custom order value.&lt;/p&gt;
    &lt;/td&gt;
  &lt;/tr&gt;
  &lt;?php
  }
  
  /** Save Custom Field Of Category Form */
  add_action( 'created_category', 'category_form_custom_field_save', 10, 2 ); 
  add_action( 'edited_category', 'category_form_custom_field_save', 10, 2 );
  
  function category_form_custom_field_save( $term_id, $tt_id ) {
  
      if ( isset( $_POST['category_custom_order'] ) ) {           
          $option_name = 'category_custom_order_' . $term_id;
          update_option( $option_name, $_POST['category_custom_order'] );
      }
  }
  </code></pre>