Need wordpress help with sub pages (child pages)

Discussion in 'Programming' started by rgordon83, Aug 27, 2007.

  1. #1
    Ok, so having a small issue with my site.

    By default Sublt is showing ALL sub pages of a certain page. Meaning if i have a page named "Dogs" and then there is a sub page of dogs named "Big Dogs" and then a sub page of big dogs named "Golden Retreivers" Currently the sidebar on "Dogs" shows both "Big Dogs" and "Golden retrievers" but i WANT it to just show "Big Dogs" and then you won't see "Golden Retrievers" until you click on the "big Dogs" page. make sense?

    The current call for sub-pages in the templates looks like

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

    Since i don't know WP or PHP that well, can someone please tell me what to change it to do get the desired functionality? (so only child pages show on a page, not grandchildren). thanks!!!
     
    rgordon83, Aug 27, 2007 IP
  2. wyrd33

    wyrd33 Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    This doesn't look like a paid job. If you need help with WordPress, try the help forums either here or on WordPress.
     
    wyrd33, Aug 27, 2007 IP