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?
- Avoid WP_Query’s duplicate posts with taxonomies
- loop inside a loop : search for posts in the same category
- Displaying member join date on page
- How to create Loop code for Menu using WordPress?
- Ascending order has strange effects on wordpress loop
- Custom query does not find pages
- Help with if and else statement
- Catagorized hierarchy menu for PAGES!
- How to check all items in a loop have post thumbnail?
- Multiple Loops That Pull Pages (Child/Grandchild) While Styling the First Entry
- How to sort a loop after most viewed
- Building a form with WordPress, and also pulling that data for a user page
- Loop info in jquery Tabs – loop into a variable?
- How to show pages in menu without link
- If/Else child list for Custom Post Type single template within loop?
- WP as a CMS menu
- Open Graph in Index Loop
- Is file_exists() compatible with timthumb.php? [closed]
- Add 2 values to post__not_in
- How to create multiple loop in archive page?
- wp_nav_menu: output featured image of each page listing
- Parent/Child pages
- Offset for Loop
- Thumbnail Image Rounded Corners w CSS (or any other good method)
- How to show multiple attachements together with Scribu’s Posts 2 Posts connector?
- Static Website No Titles But Still Nav
- List ALL posts by author on author archive
- Several loops in sidebar issues
- Exclude child pages args array
- Check if has pages?
- How do i create a loop that list and divide posts into months?
- Page Navigation Outside the Loop
- Problems in creating a static site with WordPress
- Add a menu metabox to post edit page
- Setting or plugin for showing submenus horizontally under the main menu, and keep them after selection
- Loops for cat links not looping for wordpress site
- Making a new post visible on a specific page
- How to tell if all posts are only in one category?
- Skip 5 latest post while paging?
- get post images to link to external sources
- How to make the following loop break/stop when it reaches 2 posts (custom post types called Topics)?
- get_post_meta printing empty fields, but it shouldn’t be
- How can I change how my tag pages display?
- Custom theme – pages in menu
- How to get post category and author name for cusmot API?
- Forcing page to top of the list when using get_pages
- Sort posts according to a numeric value entered with ACF
- How to loop specific Category menu from archive page?