• I have been trying to get a text value from a meta box called ‘header’ I have setup in a custom taxonomy called ‘shows’, to show up inside of a custom post template. I have placed this code in the custom post template but it does not display the value.

    <?php if (function_exists(‘get_terms_meta’))
    {
    $metaValue = get_terms_meta($category_id, ‘header’);
    }
    echo $metaValue; ?>

    https://ww.wp.xz.cn/plugins/custom-taxonomy-category-and-term-fields/

Viewing 1 replies (of 1 total)
  • Plugin Author Bas Matthee

    (@basmatthee)

    Try:

    echo $metaValue[0];

    BTW. Does $category_id contain the category_id (or term_id/taxonomy_id) or is it empty? You really NEED the category_id.

Viewing 1 replies (of 1 total)

The topic ‘Display in Custom POst template?’ is closed to new replies.