diff --git a/single-bluesky_wiki.php b/single-bluesky_wiki.php new file mode 100644 index 0000000..1653e65 --- /dev/null +++ b/single-bluesky_wiki.php @@ -0,0 +1,176 @@ +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(); +?> + + + + + +
+
+
+ + + + + + +
+
+
+ + +