'post_parent', 'id' => 'ID'); function start_lvl(&$output, $depth = 0, $args = array()) { $indent = str_repeat("\t", $depth); $output .= "\n$indent\n"; } function start_el(&$output, $page, $depth = 0, $args = array(), $id = 0) { if ( $depth ) $indent = str_repeat("\t", $depth); else $indent = ''; extract($args, EXTR_SKIP); $output .= $indent . '
  • '; if($page->post_type == 'attachment') { $output .= wp_get_attachment_image($page->ID, 'thumbnail', true); } $output .= apply_filters( 'the_title', $page->post_title, $page->ID ) . ''; } function end_el(&$output, $page, $depth = 0, $args = array()) { $output .= "
  • \n"; } }