Title: Sub-pages Plugin?
Last modified: August 19, 2016

---

# Sub-pages Plugin?

 *  [nataliearielle](https://wordpress.org/support/users/nataliearielle/)
 * (@nataliearielle)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/sub-pages-plugin-1/)
 * Is there a plugin to fix my problem?
 * (My problem = my sub-pages are listed on the main navigation menu, along side
   the parent pages.)
 * I need the subpages to be in a drop -own menu of the parent page, or listed only
   on the parent page.
 * …frustrated 🙁

Viewing 1 replies (of 1 total)

 *  Thread Starter [nataliearielle](https://wordpress.org/support/users/nataliearielle/)
 * (@nataliearielle)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/sub-pages-plugin-1/#post-1884132)
 * # Displays a list of pages
    function dp_list_pages() { global $wpdb; $querystr
   = “SELECT $wpdb->posts.ID, $wpdb->posts.post_title FROM $wpdb->posts WHERE $wpdb-
   >posts.post_status = ‘publish’ AND $wpdb->posts.post_type = ‘page’ ORDER BY ID”;
   $pageposts = $wpdb->get_results($querystr, OBJECT); if ($pageposts) { foreach(
   $pageposts as $post) { ?>
    - 
    - <?php
       }
    - I played around with this code and had to unistall the theme and start over.
      It’s been a long 4 days…
    -  }
       }

Viewing 1 replies (of 1 total)

The topic ‘Sub-pages Plugin?’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [nataliearielle](https://wordpress.org/support/users/nataliearielle/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/sub-pages-plugin-1/#post-1884132)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
