Show taxonomy term meta field on single template
Your code doesn’t show where $term_id is coming from. If it is not defined anywhere, then that could be causing the problem. Instead of using get_term() and get_term_meta() directly on your template file, you could define couple of helper functions to handle the data retrieval. This makes the template file a little cleaner and the … Read more