How to Display a List of Child Pages For a Parent Page in WordPress



aaa

There are some ways to display child pages and you may want to show them all together. Be it in a widget, the parent page, or another location in your template. In this video we will show you how to display a list of child pages for a parent page.

If you liked this video, then please Like and consider subscribing to our channel for more WordPress videos.

Text version of this tutorial:
http://www.wpbeginner.com/wp-tutorials/how-to-display-a-list-of-child-pages-for-a-parent-page-in-wordpress/

Check us out on Facebook:
https://www.facebook.com/wpbeginner

Follow us on Twitter:

Join our circle on Google+:
https://plus.google.com/+wpbeginner/

Checkout our website for more WordPress Tutorials
http://www.wpbeginner.com/

Summary of this Tutorial:

Start by ensuring you have a child page by setting a parent page in the page attributes.

Next go to edit your functions.php file in your theme.

Add the code from our tutorial page: http://www.wpbeginner.com/wp-tutorials/how-to-display-a-list-of-child-pages-for-a-parent-page-in-wordpress/

It checks to see if your page has a parent page or if it is a parent page and displays the child pages.

If it is not a parent or child page it does nothing.

Then it adds a shortcode to make display easier.

Related Links:

Functions.php

http://www.wpbeginner.com/glossary/functions-php/

bbb

source

You May Also Like

About the Author: admin

Leave a Reply

Your email address will not be published. Required fields are marked *