get_options(); $mode = $options['dark_mode'] ?? 'auto'; $primary = $options['primary_color'] ?? '#0071e3'; $term = get_queried_object(); $is_tag = is_tax('kng_doc_tag'); $icon_name = get_term_meta($term->term_id, 'kng_doc_cat_icon', true) ?: 'folder'; /* ── Subcategories ── */ $children = []; if (!$is_tag) { $children = get_terms([ 'taxonomy' => 'kng_doc_category', 'parent' => $term->term_id, 'hide_empty' => true, ]); if (is_wp_error($children)) $children = []; } get_header(); ?>
description); ?>
count, 'king-addons')), $term->count ); ?>