Herzlich willkommen im Archiv vom ABAKUS Online Marketing Forum
Du befindest Dich im Archiv vom ABAKUS Online Marketing Forum. Hier kannst Du Dich für das Forum mit den aktuellen Beiträgen registrieren.
Danke schau ich mir auf jedenfall mal an...jabbadu hat geschrieben:Vielleicht kannst du was mit UltimatePost oder FlexiPage was anfangen?
https://wordpress.org/plugins/ultimate-posts-widget/
https://wordpress.org/plugins/flexi-pages-widget/
Code: Alles auswählen
<?php
if (is_category())
{
$catID = get_query_var('cat');
$category = get_category($catID);
$parID = $category->category_parent;
if ($parID > 0) {
wp_list_categories('child_of='.$parID.'&title_li=&hide_empty=0');
}
else {
wp_list_categories('child_of='.$parID.'&title_li=&hide_empty=1&depth=1');
}
}
else
{
if (is_single())
{
$category = get_the_category();
$catID = $category[0]->cat_ID;
$category = get_category($catID);
$parID = $category->category_parent;
if ($parID > 0) {
wp_list_categories('child_of='.$parID.'&title_li=&hide_empty=0');
}
}
}
?>