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 8620725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:38:55+00:00 2026-06-12T06:38:55+00:00

What I have: Home About Projects Project Pages 1 Project 1 Project Pages 2

  • 0

What I have:

  • Home
  • About
    • Projects
      • Project Pages 1
        • Project 1
      • Project Pages 2
        • Project 2
      • Project Pages 3
        • Project 3

I would like to loop through the Project Child Pages in order to display the pages in order of most recent of all sub-child projects then be able to echo or pull out Custom Fields ,

<?php the_title();?> 
<?php the_excerpt();?>

I do not want actually display the parent pages however, only for example project 1 or Project 2 or Project 3 etc.

Have tried many things but cannot seem to be able to do it with array_merge or wp_list_pages.

Any help would stop me from pulling my hair out. Greatly appreciated.

  • 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-06-12T06:38:56+00:00Added an answer on June 12, 2026 at 6:38 am

    I found how to do it. I used the following code. I hope it helps someone.

    <?php
    $args=array(
    'post_type' => 'page',
    'post__in' => array(345, 289),
    'post_status' => 'publish',
    'posts_per_page' => 2,
    'caller_get_posts'=> 1
    );
    $my_query = null;
    $my_query = new WP_Query($args);
    
    if( $my_query->have_posts() ) {
    
    while ($my_query->have_posts()) : $my_query->the_post();
    
    ?>
    

    This produced 2 posts as pages, from the specific category without displaying the parent, avoiding using wp_list but using a new WP_Query and $args. It worked as a temporary fix but does work.

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

Sidebar

Related Questions

I have a website that consists of the following areas, Home About Us Project
I'm using the ASP.NET MVC3 sample project and would like to have new links
I have a doubt about orkut's new URL Writing method. Earlier the home page
Using Twitter Bootstrap's bootstrap-tab.js, I have: <ul class=tabnavcenter id=myTab> <li class=active><a href=#home data-toggle=tab>about</a></li> <li><a
I have a home server that I'd like to use with ESXi. It's a
The Sun Cloud API at http://kenai.com/projects/suncloudapis/pages/Home is a good example to follow for a
I have my projects in /srv/http/dev folder. I generated ctags file for one project:
I've been working on a home project using CodeIgniter Reactor, and have come to
I have a simple nav bar like so: <ul class=nav> <li><a href=<%= index_url %>>Home</a></li>
I have a home page with ul li div the div is a square

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.