[resolved] Listing pages (advanced) (4 posts)

  1. ghettopixel
    Posted 9 years ago #


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

    -> 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">
    <div class="the-links">

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

    <? } ?>

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

  2. spencerp
    Posted 9 years ago #

    I noticed you marked this [Resolved], but, can you let everyone else know what you did to "Resolve" it? This might help others that are having the same problem as you had.. =) ;)


  3. ghettopixel
    Posted 9 years ago #

    It was actually turned into a widget :) http://www.ghettopixel.com/projects/widgets-plugins/cms-navigation/ for people who wanted to do the same thing.

  4. spencerp
    Posted 9 years ago #

    Ahh, nice! Thanks for updating "us" on this. ;) =)


Topic Closed

This topic has been closed to new replies.

About this Topic