Wordpress Q on sub-page display

Discussion in 'PHP' started by rgordon83, Jul 17, 2007.

  1. #1
    I am having a problem with which sub-pages display on my site.

    If you go to http://fenderbluesjunioramps.com/accessories-parts-mods/ you will see the following sub pages of "Accesories/pardt/mods":
    Speakers
    Tubes
    EL84 Tubes
    12AX7 Tubes
    Footswitches
    Soft Cover
    Hard Case
    Knobs
    Reverb Tanks

    The problem is that "EL84 Tubes" and "12AX7 Tubes" are sup pages of "tubes" and i don't want them to display on the "Accesories/pardt/mods" page (current page). I ONLY want them to show up oncem "tubes" is clicked.

    Here is the current PHP code. what can i change to fix this? thanks so much!:

    <?php

    if ($aOptions['show_subpages']) :

    global $id;
    $aSubPages = get_page_children($id, '');
    if (count($aSubPages) > 0) :

    ?>
    <div id="child_pages">
    <h3>More Pages</h3>
    <ul class="icon jump">
    <?php foreach ($aSubPages as $page) { echo('<li><a href="' . $page->guid . '">' . $page->post_title . '</a></li>'); } ?>
    </ul>

    </div>
     
    rgordon83, Jul 17, 2007 IP
  2. rgordon83

    rgordon83 Peon

    Messages:
    671
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #2
    anyone have any ideas here?
     
    rgordon83, Jul 18, 2007 IP