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?
- How to pull through page title depending on which radio button is selected on the specific page?
- Custom theme on multisite has issues with standard loop output
- Products listing check if meta checkbox is checked
- Pagination contents not changing in Front page WordPress
- Display articles with a different template in the home page | Solved |
- in_array not working on dev server but works on localhost
- How can I check if a post with a particular slug or title exists?
- How to Create Carousel Indicators in PHP Loop using wp_get_attachment_url function?
- How to output the taxonomies that are assigned to each custom post?
- When I click for the redirect link it is showing the content of index.php instead of single_assignment_page.php
- Get title of page containing post grid within the posts
- Check if current post in loop is last on current page
- update_user_meta as multiple value but with same meta key
- Category Page Displaying all Pages
- Is there anyway I can call the year once?
- Display all categories including sub categories under a list ul
- Responsive loop with 3 columns inside row then 2 columns
- Foreach Loop Of Post Types With Nested If Else If Not Completing Process
- Looping through dummy posts and showing them in the main index.php
- Where does php code to load data go?
- Split post or page content in two or more columns
- Adding new divs with custom classes to products on WooCommerce shop page [closed]
- Custom Loop.php having a loop inside a loop
- ACF – Get ID of relationship field in flexible content
- cURL needing to loop through all “next_page”
- Filtering custom posts by using checkboxes for taxonomy in an ajax loop always gives server 500 error
- Latest posts feed with a specific post always first
- Show the subcategory name based on current product
- 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?
- adding or removing endforeach; throws error!
- Return to the beginning of the results of a for loop
- How to count posts posts if they are in a separate content page?
- Adding PHP to an if else loop
- Accordion headings cuts off to second line on collapsing a accordion heading (used acf repeater)
- WordPress Recent Posts – Loop
- Exclude category and post from loop in custom category.php
- Static Page with php echo [duplicate]
- ACF background-color per post in a WordPress loop
- How can I get my pagination loop to display the correct number of total pages?
- Advertisement in Loop Posts wordpress
- How do if all posts has this category ID then do this
- Thumbnail wouldn’t scale to size properly
- How to tell if a page has subpages for Custom Post Types
- loading a php file to a specific page id
- ERR_TOO_MANY_REDIRECTS / To Force SSL Logins and SSL Admin Access
- Getting page / post URL on publish and / or update
- How to sort (orderby) a query done by a template function before the ‘foreach’ loop?
- Date of last blog update for specific authors only?
- Use page-templates without creating theme
- View tag description on page
- Making list of posts with chosen description
- Filter loop by ‘price’ with meta_query
- Get top Page IDs from menu and cycle through their child pages on a scroller
- PHP for loop not working as intended
- How fix error in the WordPress loop?
- what’s the syntax for if the image exists get the image?
- Getting a value from a custom field from a page that shares a parent with the current page
- Adding custom PHP to existing loop in Genesis
- How to Pass Current Taxonomy Terms into new WP_Query?
- Problems with the WordPress loop [closed]
- How to associate dynamic PHP page for chosen WordPress tag?
- Newbie question. Login/Registration. New PHP page
- 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?
- Efficient way of querying for a “fallback” post?
- Insert div after every three posts in home.php [duplicate]
- My function echos only “array”
- WordPress while loop with aphabetic counting like one, two, three
- Display product attributes for current product
- Retrieving specific images from Media Library
- For each 3 posts, show a different post type
- PHP: Why does my code work in index.php but not a widget?
- Div Missing In Custom Loop Query
- Adding my own custom template page but got white page
- Add post class in custom loop (WP_QUERY)
- Loop 1 user randomly
- Create a custom theme-specific page, invisible in the admin-panel?
- Create a hierarchical loop at predefined markup requirements
- enumerating custom taxonomies?
- Loop returns more items than exist?
- Using page template to fetch posts in page
- Modify category archive page loop on functions.php
- Custom Taxonomy Link Text Echo Name Not Slug
- WP_Post is not from correct array
- Post formating on Home page