Instead of a single parent page,
'post_parent' => 17,
in the WP_Query
params, you can specify an array of parent pages
'post_parent__in' => ['17', '18', '19'],
'orderby' => 'post_parent title',
Related Posts:
- Child Pages Loop
- Loop that displays PARENT PAGE & CHILD PAGE & outputs GRANDCHILD PAGE title and content
- Display subpages under parent page as a list within a loop
- Using the Loop to show all levels of subpages under a parent page? Halfway there
- Get post by page name or slug
- Is including the loop necessary for page.php? [duplicate]
- Identify the page being shown while in The Loop
- Displaying child page content of a certain parent
- If Loop has odd number of posts on last page Custom style for last post in it
- single page site with subpages
- How to loop through ALL pages?
- Loop and Page template : my WP_query don’t take args
- Create a loop that gets pages with their template
- Display content of page template (get_page)
- Loop after page content
- wp alchemy multiple image uploader output images to template
- Schedule Page to Menu [duplicate]
- How to hide all child pages with post_query?
- Programmatically add existing pages and subpages to Appearance Menu
- How to retrieve parent menu item name of current submenu item
- Get Page content to displayin Bootstrap Modal
- Listing subpages title and content and styling the first iteration differently
- get_the_title() gets printed out twice
- How do I make a variable available inside partials?
- How to highlight 1st level menu item based on actual page
- Exclude page name from loop
- Stepping through a foreach loop – adding +1 to the end of it so next time it loops it starts on item 2
- Include multiple page ids in loop
- Get post offset/posts page offset in single post page (outside the loop)
- First archive page with a few posts
- Tags on page (not post) returns nothing – why? Improved clarified question!
- Display child page content of a specific parent on home page
- Exclude page from loop results
- Dynamic menu wp_list_pages displaying only current branch including: current page, his siblings and its childs
- Print the whole page?
- Parent Page > Child Page Menu
- WP_Query is only looping home page, not pages
- How do i create a list-posts-page?
- Check if page has subpages
- WordPress: query pages except remove one page
- Archive: Lists itself
- is it bad to copy the loop for a template?
- Deeply Nested Menu Loop with Twig using Timber [closed]
- Search – Check if post is a page on search page
- How to sort a sub-menu, generated with get_pages(), by the page order instead of alphabetically?
- Structure and Display Content from Multiple Pages on Single Page
- Making a specific page wordpress compatable that is not index
- Default Template infinite loop of Title
- Get child taxonomies in loop
- Have multiple loops on a page appear after/between page content
- get_template_part() to render single page Theme
- get_page() unlike Loop returns the post content without html tags. How can I fix this?
- How do I get the attributes of a short code from a post?
- WordPress category & taxonomy loop with pagination
- Changing behavior of the loop twice in one page
- “Blog pages show at most” in The Loop
- wp_insert_posts Fatal error: Maximum function nesting level of ‘100’ reached, aborting!
- Post Loop not Returning Permalink
- Pagination adding extra posts only on page 2
- Get only the grandchildren, not the direct children of page/current page?
- Different side menu on each page
- Why we use if with while loop?
- Sort Posts By Category?
- Can’t access login screen, wp-login.php 404’s
- Query posts if meta key starts with
- 3 Posts in Loop, Show Stickies First
- Loop within a loop (Again) for template
- How to use current_post to open a new unordered list every five posts
- Rating system and changing the loop
- Check if Page Already Exists in Menu
- Ajax Button to load more Posts into a timeline
- How to target thumbnails of the first post in the loop
- Problem getting current post tags to show in a widget
- Three menus – parent / child / sibling
- For each loop on every word in post
- Display name of taxonomy once
- Displaying the first, second, and third posts from a category in separate slides
- Call wp-blog-header.php header without performing a wp_query
- How to output thumbnail twice in a loop
- Display more than 10 posts on author.php file
- How to use this $tax_selection variable in this custom loop?
- Display all categories as plain text
- posts going to 2 pages/categories only show up in 1
- How to display fields from the loop in two separate divs
- get_page_by_title not working inside fucntions.php
- Get gallery in loop through ajax
- Pagination on a underscore custom theme
- Build a Page which shows the Oldest Post with specific Custom Field Value
- Work arounds for conditional checks inside the loop in search.php?
- Posts are not showing up on next page.
- Get Sticky User in user loop based on user role
- Popular posts with Varnish ESI
- Querying posts from only one category and exluding the latest post
- Showing main menu and child menu in diffent places in a same page
- WP update_post_meta link loop
- Need some help with “the_widget()” function
- Conditional Check in The Loop’s Parameters
- Exclude Authors based off date of last post
- How does WP knows which template to use for a page
- Query Loop Block: possible to restrict just child pages?