What I have:
- Home
- About
- Projects
- Project Pages 1
- Project 1
- Project Pages 2
- Project 2
- Project Pages 3
- Project 3
- Project Pages 1
- Projects
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.
I found how to do it. I used the following code. I hope it helps someone.
This produced 2 posts as pages, from the specific category without displaying the parent, avoiding using
wp_listbut using anew WP_Queryand$args. It worked as a temporary fix but does work.