To me, this sounds like a good use-case for a custom post type for homes, but, in any case, this is the basic concept you’d need to follow to get this working as you’ve got it set up now.
<?php
// Set up the objects needed
$homes_wp_query = new WP_Query();
$all_wp_pages = $homes_wp_query->query(array('post_type' => 'page', 'posts_per_page' => '-1'));
// Get the page as an Object
$our_homes = get_page_by_title('Our Homes');
// Filter through all pages and find Our Homes' children
$home_children = get_page_children( $our_homes->ID, $all_wp_pages );
// echo what we get back from WP to the browser
echo '<pre>' . print_r( $home_children, true ) . '</pre>';
?>
That will print the post objects, then you can pick and choose which elements (like title, etc.) that you want to echo out
Related Posts:
- How to hide all child pages with post_query?
- Getting only direct child pages in WordPress with get_pages
- Get only the grandchildren, not the direct children of page/current page?
- How do I Turn This Into An if statement?
- get_the_title() gets printed out twice
- List all anchor links on a page
- Display page content in different sections – based on page break block?
- Child and Parent Pages list of sub pages
- Get current_post in reverse order with pagination
- List of child pages fetch next results at link click
- How to handle parent and child pages?
- How do I remove blog entries from home page Twenty Eleven child theme?
- Custom theme on multisite has issues with standard loop output
- How to add a .php file to WordPress
- How to check if feed URL was requested?
- Loop that displays PARENT PAGE & CHILD PAGE & outputs GRANDCHILD PAGE title and content
- Displaying post per day
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- Guidance with The Loop for CMS
- How to add active class to custom menu using while loop and wp_list_pages
- Print html when custom field has value inside while loop
- delete an array element when its date expires
- How to link to a custom .php page in my folder
- When would you use $_post instead of $post?
- How do I display the function the_content in this loop?
- How to get to a specific position in wp_query?
- Advanced Custom Fields: Post Object – Not returning data [closed]
- Facebook “like” open graph meta in header.php
- Custom category code not showing all posts
- Using foreach loop breaks
- Best practice for migration friendly images in posts/pages?
- Page Automatically Generated from Theme?
- Loop with slider (slider not loading)
- How to sort posts based on the value (number) of a post’s metadata?
- Displaying Woocommerce Product Category in WordPress
- How can I add extra word in permalink when someone click download button?
- Blog posts repeat
- Woocommerce : Can’t get product info in loop
- Populate editor with some content of a page with a page template
- Use .php file as page instead of wordpress page & template file?
- How to check if the current page is at a specified path in the URL?
- How to get post ID in a Page?
- Echo a shortcode div after every 3 posts
- How to avoid duplicates when creating recent network posts
- variable value disappears in a second loop
- What’s the best way to include PHP code in pages?
- page-slug.php not working but only for specific slug
- Need php code’s output to display underneath a Divi Module
- Why my loop isn’t working? [closed]
- How to pass current loop data into nested loop
- Get all posts as an array ID => Name
- How to get post ID from button and pass title to Modal
- Infinite Loop – WP_Query
- Posts are not looping through correctly
- Limit tags shown in post
- Unique PHP on each Page
- If is page, archive or search output this code
- Create Div Wrapper On 3rd Iteration Or When Query Loop Items Run Out
- Toolbar Hidden in a Virtual Page
- How to create Loop code for Menu using WordPress?
- Add class to every other posts using get_posts
- A function to get the content of a page
- Give ID to divs inside the loop
- When I click for the redirect link it is showing the content of index.php instead of single_assignment_page.php
- Custom Loop.php having a loop inside a loop
- ACF – Get ID of relationship field in flexible content
- How to output values from a loop into a javascript array
- WordPress Ajax filter: Create two loops for different output styles?
- How to display sticky post always at the top (before regular post) in wordpress?
- Exclude category and post from loop in custom category.php
- How to sort (orderby) a query done by a template function before the ‘foreach’ loop?
- Use page-templates without creating theme
- Making list of posts with chosen description
- what’s the syntax for if the image exists get the image?
- Add div after every 4 posts then every 2 posts for a responsive loop
- how to remove replicating a tag inside loop?
- My query keeps looping infinitely ! how to stop it?
- My function echos only “array”
- Retrieving specific images from Media Library
- Adding unique marketing messages between certain products whilst using isotope/Infinite Scroll
- Execute php in pages
- Why isn’t my link attribute getting my css?
- How to map my php files as the files for pages
- Problems With Query and/or Template Part and/or PHP
- Two loops in one function
- Show results for multiple page-types
- How to add feature image url in my template file and content as well?
- Error trying import one category on page
- the_post_thumbnail unless video id is added
- Display selected parts from selected pages on the frontpage?
- Adding Media button to only pages
- How to refresh a template page on WordPress in 3 seconds – easiest method?
- WordPress post pagination on custom template not working
- For each loop will not append to the_content hook
- Options.php loop won’t show!
- Pagination not working properly
- I want to show image from custom field image on my custom page template
- Count the number of matching post names in foreach loop
- How to get posts by a certain author in inner loop using outer loop variable or post title WordPress
- WordPress post-template null warnings