Show siblings?
'Subpages', 'siblings_title' => 'Siblings', 'before_title' => '
  • ', 'after_title' => '
  • ', 'show_siblings' => 'no'); $options = (array) get_option('subpages'); foreach ( $defaults as $key => $value ) if ( !isset($options[$key]) ) $options[$key] = $defaults[$key]; global $post; global $wpdb; if (is_page()) { echo $before_widget; $current_page = $post->ID; if(wp_list_pages("child_of=".$current_page."&echo=0")) { echo $before_title . $options['title'] . $after_title; echo ""; } if($options['show_siblings'] == 'yes') { $parent = $wpdb->get_var("SELECT post_parent FROM $wpdb->posts WHERE ID='$current_page'"); if($parent != 0) { echo $before_title . $options['siblings_title'] . $after_title; echo ""; } } echo $after_widget; } } // Tell Dynamic Sidebar about our new widget and its control register_sidebar_widget('Sub Pages', 'subpages'); register_widget_control('Sub Pages', 'subpages_control'); } // Delay plugin execution to ensure Dynamic Sidebar has a chance to load first add_action('plugins_loaded', 'subpages_init'); ?>