Sub Child Pages - Jump Menus (1 post)

  1. canofpopcom
    Posted 5 years ago #

    Hi guys.. i'm wondering if anyone could point me in the right direction.

    I'm trying to create a menu system as such..

    <parent>Parent Page</parent>
    <jump_menu>Subpage children</jump_menu>

    <jump_menu>Subpage children</jump_menu>

    <jump_menu>Subpage children</jump_menu>

    While I can get the subpages to display with their children using this lovely peice of code..

    <form action="<?php bloginfo('url'); ?>/" method="get">
    					$select = wp_dropdown_pages("sort_column=menu_order&selected=".$post->ID."&title_li=&child_of=".$post->post_parent."&echo=0");
    					$select = wp_dropdown_pages("title_li=&child_of=".$post->ID."&echo=0");
    					$select = preg_replace("#<select([^>]*)>#", "<select$1 onchange='return this.form.submit()'>", $select);
    					echo $select;

    I can't seem to seperate out the child pages of the subpages..

    I thought about creating two arrays but these seems overly complicated..

    Anyone else done something similar on a theme or project that could point me in the correct direction.

Topic Closed

This topic has been closed to new replies.

About this Topic