Support » Fixing WordPress » Sub-Page display problem

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

    If you go to you will see the following sub pages of “Mods, Parts, & Extras”:
    EL84 Tubes
    12AX7 Tubes
    Soft Cover
    Hard Case
    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 “Mods, Parts, & Extras” page (current page). I ONLY want them to show up once “tubes” is clicked.

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

    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>guid . '">' . $page->post_title . '</a></li>
    '); } ?>


Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sub-Page display problem’ is closed to new replies.