Support » Fixing WordPress » Sub Child Pages – Jump Menus

  • 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.

  • The topic ‘Sub Child Pages – Jump Menus’ is closed to new replies.