I have a page structure like this in WordPress:
- Main Page
- Main page child
- Main page grandchild
- Main page grandchild
- Main page grandchild
- Main page grandchild
- Main page child
- Main page grandchild
- Main page grandchild
- Main page grandchild
- Main page grandchild
- Main page child
etc…
I just want to show the title/content for each child page/grandchild page on the main page it’s self, please can anyone help?
You should use
wp_list_pages()
function, and specify a top ancestor and level of2
.