posts.' where post_type=\'page\' and post_status=\'publish\' and post_parent='.$child.' order by menu_order'; $result = $wpdb->get_results($query,ARRAY_A); foreach($result as $key => $val) { if($i == 0 && $home) { if(!is_page()) $items .= '
  • '.$home.'
  • ' . "\n"; else $items .= '
  • '.$home.'
  • ' . "\n"; } if(is_page($val['post_title']) or count($wpdb->get_row('select ID from '.$wpdb->posts.' where post_parent='.$val['ID'].' and ID='.$wp_query->get_queried_object_id().' and post_type=\'page\' and post_status=\'publish\' limit 1')) > 0) $items .= '
  • '.$val['post_title'].'
  • ' . "\n"; else $items .= '
  • '.$val['post_title'].'
  • ' . "\n"; ++$i; } if($echo) echo $items; else return $items; } ?> Adriatische kust » Camping Adriatische kust

    Adriatische kust