ID; while($current_page) { $page_query = $wpdb->get_row("SELECT ID, post_title, post_status, post_parent FROM $wpdb->posts WHERE ID = '$current_page'"); $current_page = $page_query->post_parent; } $parent_id = $page_query->ID; $parent_title = $page_query->post_title; if ($wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = '$parent_id' AND post_type != 'attachment'")) { ?>
  • Recent Posts

      ID)) : ?>
  • Categories

  • Archives

  • Blogroll

      ', '', '
      ', FALSE, 'id', FALSE, FALSE, -1, FALSE); ?>
  • Rss

    - entries
    - comments