Support » Plugin: Category and Taxonomy Meta Fields » Works if you fix the mistake in the code

  • The Installation tab of this plugin says to use the following code to display the information from your meta field:

    if (function_exists('wp_get_terms_meta'))
      $MetaValue = wp_get_terms_meta($category_id, $meta_key ,true); 
     //where $category_id is 'category/term id' and $meta_key is 'meta key'
    //meta value for meta key $meta_key
    echo $metaValue; 

    but he misspelled the variable for the echo. It’s supposed to be $MetaValue, not $metaValue. It’s suppose to have a capital M. With that fix it will display properly.

  • The topic ‘Works if you fix the mistake in the code’ is closed to new replies.