Get custom term meta problem on single post type

Possible solutions:

  1. Check if there’s a prefix which you setup for the custom field (https://en.bainternet.info/tax-meta-class-faq/#comment-1107)

  2. Go to the Tax-meta-class/Tax-meta-class.php file and find the function you’re calling and debug the issue:

    // Tax-meta-class.php
    
    public function get_tax_meta($term_id,$key,$multi = false){
        $t_id = (is_object($term_id))? $term_id->term_id: $term_id;
        var_dump ($t_id); // debug this
    
        $m = get_option( 'tax_meta_'.$t_id);
        var_dump ($m); // debug this
    
        if (isset($m[$key])){
             return $m[$key];
        }else{
            return '';
        }
    }
    
  3. Check the wp_options table and search the option_name column for the option (the parameter of get_option(‘tax_meta_foo_bar’) above). It’s either not there or you’re missing the prefix for get_option not to return a value.