Do you want to know how to create a child page using WordPress?
As a beginner, after you have created your WordPress site, you need to create a child page also known as moppet page.
What is Child Page
What is a Child Page on WordPress?
WordPress pages do not have a publish date and are meant for static, timeless content and stagnant. They don’t change, not been updated. It is like having all your document in your bag. They are the carrier of WordPress post. For more understanding you can read our guide on differences between WordPress post and WordPress page. You can’t have well develop website or blog without having a child’s page either Sport, Gist, entertainment, tech even business website, you need a child’s page.
What Child’s page does on your website
- It helps in Organizing your website. Your website will look messy if your website does not have a child’s page.
- You can create a broader page as a ‘Parent’ and then add child pages to better organize your website structure and layout.
- You can build relationships between your pages and create a proper website structure.
How to Create a Child’s Page on your WordPress Site
Creating your child’s page should not take much of your time.
Simply click Pages » Add New to create a new page or edit an existing page in your WordPress admin area. you will see Page Attributes box with Parent dropdown on the right side. In the Parent drop-down, you will see the list of all pages from your site. By default, it is set to ‘no parent’ which means this page is an individual page with no association. You need to select the page you want to use as the parent from the drop-down menu.
Make sure you remember to save the page, so create more moppet page as you want.
To view child pages, you can go to the ‘Pages » All Pages’ page in WordPress admin area. You will see child pages listed under their parent page with a prefix.
Then go ahead and add to you navigation on your website.
How to Display Child’s Page on WordPress
There are different ways to display child’s page on WordPress, but the most easy way is using plugins called CC child’s page plugin.
Displaying Child’s page With Plugins
CC Child Pages is a simple plugin to show links to child pages via a shortcode. Child Pages are displayed in responsive boxes, and include the page title, an excerpt and many more.
Install CC Child’s page plugin and activate it, you can follow our guide on how step by step to install a WordPress plugins so that you can easily install this plugin.
Upon activation,you need to use the shortcode with no parameters:
This would show the Child Pages for the current page in 2 columns.
You can add the cols parameter to choose the number of columns:
Displaying Child’s page Without Plugins
To do that, you need to edit the main page.php template, or create a custom page template in your theme.
You can edit your main theme, but those changes will disappear if you change or update your theme. That’s why it would be better if you create a child theme and then make your changes in the child theme.
In your page template file, you need to add this line of code where you want to display child pages.
1. <?php wpressb_list_child_pages(); ?>
Then you are good to go.
If you have any issue on this, you can use our comment session or join our delegate on facebook to solve any issues related to WordPress and subscribe to our YouTube Channel for WordPress video tutorials.