post_parent;
$parent_post = get_post($parent_post_id);
$parent_post_title = $parent_post->post_title;
if ($post->post_type=="page") {
$children = wp_list_pages("title_li=&sort_column=menu_order&child_of=".$post->ID."&echo=0&depth=1");
if ($children != "") {
echo '

'.$post->post_title.'

';
echo '

'.$children.'

';
} else {
$children = wp_list_pages("title_li=&sort_column=menu_order&child_of=".$parent_post_id."&echo=0&depth=1");
echo '

'.$parent_post_title.'

';
echo '

'.$children.'

';}
}
if ($post->post_type=="post") {
$cats = wp_list_categories("title_li=&orderby=name&child_of=0&echo=0&depth=0");
echo '

Themen

';
echo '

'.$cats.'

';
} ?>

Neubau Gesamtschule