• 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

    (@nataliearielle)

    # 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) {
    ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Sub-pages Plugin?’ is closed to new replies.