Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4250152
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:29:27+00:00 2026-05-21T04:29:27+00:00

So, I have a Parent page with multiple Sub Pages. Some of the Sub

  • 0

So, I have a Parent page with multiple Sub Pages. Some of the Sub Pages have Sub Sub Pages. I want to be able to, on the Parent page, only display all the Sub Pages. If you go to a Sub Page it will display all of the Parent’s Sub Pages still, but now also display the Sub Sub Pages of the current Sub Page.

The current function I have now does almost that, but it’s lacking.
It will display all of the Sub Pages, if you go to a SUb Page, it will display the Sub Sub Pages, but if you get to the Sub Sub Page, it will only display all the other Sub Sub Pages, and stops displaying the Sub Pages.

<?php
  if($post->post_parent)
    $children = wp_list_pages("title_li=&sort_column=menu_order&child_of=".$post->post_parent."&echo=0");
  else
    $children = wp_list_pages("title_li=&sort_column=menu_order&child_of=".$post->ID."&echo=0&depth=1");
  if ($children) { 
?>
  <ul>
    <?php echo $children; ?>
  </ul>
<?php } ?>

Does anyone have an idea of what I could try to make this work?
This is a quick idea of how it should output.

*Parent Page* ( does not need to display anything, just a marker of the current page I am on )
  - Sub Page 1
  - Sub Page 2
  - Sub Page 3

*Sub Page 1* ( does not need to display anything, just a marker of the current page I am on )
  - Sub Page 1
    - Sub Sub Page 1
    - Sub Sub Page 2
  - Sub Page 2
  - Sub Page 3

*Sub Sub Page 1* ( does not need to display anything, just a marker of the current page I am on )
  - Sub Page 1
    - Sub Sub Page 1
    - Sub Sub Page 2
  - Sub Page 2
  - Sub Page 3
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T04:29:28+00:00Added an answer on May 21, 2026 at 4:29 am

    Thanks @Kalessin, but that plugin hasn’t been updated since 2008.

    I ended up using Simple Section Navigation Widget

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app with multiple subdomains, subone.parent.com, subtwo.parent.com. I have a logon page
I have multiple datepickers on a page... all seems to be working fine except
I have a multiple menu's on my page which all use the same mouseover
I have one parent page with a parentManagedBean (attached to Session Scope). On click
I have a parent object called Page that has a List of objects called
I have a web page that consists of a checkbox (parent) and on this
I have this script on my html page: <script language='javascript'>parent.resizeTo(550,510);</script> I'd like to add
i know i can have iframe in a html page, say parent.htm, and i
I have an array with multiple sub-arrays like this: Array ( [0] => Array
I have a page with multiple instances that contain of the following code: <div

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.