// SHOW TVSA-STYLE HEADER ON CATEGORY PAGES add_action('wp_head', function() { if (!is_category()) return; ?> term_id); $【entity-dstv¦canonical_name=DStv】 = get_field('dstv_number', 'term_' . $term->term_id); $gotv = get_field('gotv_number', 'term_' . $term->term_id); $openview = get_field('openview_number', 'term_' . $term->term_id); $startimes = get_field('startimes_channel_number', 'term_' . $term->term_id); $owner = get_field('channel_ownner', 'term_' . $term->term_id) ?: get_field('channel_owner', 'term_' . $term->term_id); $tagline = get_field('channel_tagline', 'term_' . $term->term_id); $desc = term_description(); if (!$logo && !$【entity-dstv¦canonical_name=DStv】 && !$owner) return; // only show if you filled fields $logo_url = is_array($logo) ? $logo['url'] : $logo; echo '
'; if ($logo_url) echo ''.esc_attr($term->name).''; echo '
'; echo '

'.esc_html($term->name).'

'; if ($tagline) echo '
'.esc_html($tagline).'
'; if ($desc) echo '
'.wp_kses_post($desc).'
'; echo '
'; if ($【entity-dstv¦canonical_name=DStv】) echo '【entity-DStv¦canonical_name=DStv】: Channel '.esc_html($【entity-dstv¦canonical_name=DStv】).''; if ($openview) echo 'OpenView: Channel '.esc_html($openview).''; if ($gotv) echo 'GOtv: Channel '.esc_html($gotv).''; if ($startimes) echo 'StarTimes: Channel '.esc_html($startimes).''; if ($owner) echo 'Broadcast on: '.esc_html($owner).''; echo '
'; echo '
Main Shows Teasers Full Story
'; }