parent) {
$parent = get_term($cat->parent, 'wiki_category');
if ($parent && !is_wp_error($parent))
$breadcrumb[] = ['label' => $parent->name, 'url' => get_term_link($parent)];
}
$breadcrumb[] = ['label' => $cat->name, 'url' => get_term_link($cat)];
}
// Sidebar: alle Kategorien & Artikel
$all_top_cats = get_terms(['taxonomy'=>'wiki_category','hide_empty'=>true,'parent'=>0,'orderby'=>'menu_order']);
$current_cat_ids = wp_list_pluck($cats ?: [], 'term_id');
$current_post_id = get_the_ID();
?>
'wiki-hero-img']); ?>