• Resolved ghettopixel

    (@ghettopixel)


    Hello,

    I was wondering how I could list pages associated with a parent ID. I know there are ways to do it, right now I do it so that pages are only listed for a specific parent ID but the child pages for the child pages parent ID arent shown which is what I want do to.

    [Example]

    (Example one)

    About
    -> My Life
    -> My family
    -> My job
    -> My Hobbies

    Now when somone goes to about it does show all the child pages, however, I want to show the child pages on the child pages as well from the child pages parent id.

    So if they go to about -> my life they will still see all the other child pages associated with the parent page about. Now I also still only to want it to show the navigation if there are child pages for a page. otherwise I dont want the Navigation to even show up.

    is there a way I can do what I am asking?

    Thanks for the help!

    [The code i have]
    <?PHP if(wp_list_pages(“child_of=”.$post->ID.”&echo=0″)) { ?>
    <div class=”plugin”>
    <h1>NAVIGATION</h1>
    <div class=”the-links”>

      <?PHP wp_list_pages(“title_li=&child_of=”.$post->ID); ?>

    </div>
    </div>
    <? } ?>

    [Live example of what I have]
    http://www.ghettopixel.com (click on about and you will see)

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Listing pages (advanced)’ is closed to new replies.