If you want to make use of all the nifty filters for the title and excerpt/content (and why would you not want that?) you should loop through a custom query instead of using get_pages
and the pages’ plain contents:
<?php
$args = array(
'post_type' => 'page',
'post_status' => 'publish',
'posts_per_page' => -1,
'post_parent' => $post->ID,
);
$query = new WP_Query($args);
while ($query->have_posts()) {
$query->the_post();
?>
<h2><a href="https://wordpress.stackexchange.com/questions/136190/<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php
the_excerpt();
}
wp_reset_postdata();
?>
Related Posts:
- Custom wp_list_pages() function
- Proper way to get page content
- Get wp_get_attachment_url outside of loop
- WordPress parent select need to be removed
- Manual excerpts for pages not working on Search
- How to get post or page excerpt using post_excerpt
- How do I modify this page template to show subpage excerpts (not post excerpts)?
- How does wordpress calculate the page depth?
- Check whether the child page has siblings
- How to get the excerpt of a page before more tag?
- Extra title output with this function wp_list_pages
- List child pages by slug not ID?
- Page displays content from different query?
- Combining ‘depth’ with ‘include’ in wp_list_pages()
- How to retrieve attachments from child pages of a specific Page?
- Get the ID of the direct parent page
- Get parent of current page
- Custom page with queries returns 404
- Post Fetching Ignoring Sort_Column?
- Exclude pages by menu order
- Query specific Pages
- Change page name in admin list
- Check if the child page has sibling pages, and bookmark current page
- Keep page hierarchy in wp_list_pages, even if on a child or grandchild
- Query pages based on tags
- Show content if page is a grandchild of top level page
- Get all pages to display at once
- Archive limit the text of the_content
- Check if page has subpages
- How should I set up a Tumblr blog at a WordPress Page?
- Translate dashboard metabox
- Include parent page in list of child pages
- wp_list_pages get the hole hierarchy for current page
- Remove and change pages label
- Get All Pages as strings in array
- Display inner pages like posts.[Like how post excerpt works]
- Create page excerpts for landinpage
- How To List Sibling Pages And Include The Featured Image?
- Filter posts by author selected in page
- How to make in post Parent page children page list nummbered
- simple category search form returns full text – but I need excerpts
- Static front page with excerpt
- How do you add a filter to wp-block-page-list?
- Add infinite scroll to content splitted post
- Check if wp-login is current page
- How to get current page ID outside the loop?
- Contact Form on WordPress Sites?
- Page returns 404 with POST variables, but not without
- Custom templates not showing up in template dropdown
- Get page id by template
- Using pre_get_posts on true pages and static front pages
- Get the content of a specific page (by ID)
- How to get page title with the page ID?
- Show more than 20 items in pages or posts edit dashboard
- Allowing user to edit only certain pages
- How to display last 3 posts (recent posts) in a static page?
- How to give paged links custom title?
- How to set post slug when using wp_insert_post();?
- How can I keep the content of my pages version controlled?
- How to load javascript on custom page template?
- How to configure WordPress to handle 75,000 pages?
- How to update page status from publish to draft and draft to publish
- Check if is on child-page of a particular page
- Change page template programmatically ?
- Conditional tag to check if ‘page.php’ is being used?
- Customizing the URLs of WordPress Login and Sign-up Pages?
- How to disable posts and use pages only
- featured image as background image on pages
- Check IF is a “single product page” and Check the “role” for a Redirect
- A check for if is parent page, if has children, if has grandchildren
- How to load JS and CSS only on specific Pages using is_page()?
- Listing pages which uses specific template [duplicate]
- Access the same page from multiple urls (wildcard)
- Create a page without adding a page in the Database
- Is there a way to change the default page template selection?
- Can I have two child pages of different parents with the same name?
- What methods to use to create small, editable pieces of text for static pages?
- Show Default Editor on Blog Page ( Administration Panel )
- Hide page visual editor if certain template is selected?
- What is the difference between $paged and $page?
- multi page password protection
- Create a “Dummy” parent page for a hierarchy in page listing?
- How do I convert a page’s title to lower case?
- Get top level page parent title
- How to add a specific widget to only 1 page?
- Restrict admin access to certain pages for certain users
- page title, parent tilte and grand parent title
- How to add jQuery script to an individual page?
- WordPress page edit does not save selected template
- Add a Page without header and menus?
- What is an alternative to get_page_by_title()?
- Password protect page with multiple passwords
- Create pages automatically if they don’t exist
- Find empty pages or pages which have less than x characters
- Allow only new sub-pages to be created
- Set page template automatically based on parent
- Editing Complex Pages in Visual Mode
- Link section within page with slash (/) and not hash (#) without reloading the page
- Creating a template using a specific slug name, for a page with a parent page
- Can I display submenus in groups, using wp_list_pages?