Skip to Content

How to Use Child Pages When Building a WordPress-Powered Website

How to Use Child Pages When Building a WordPress-Powered Website

When building a WordPress-powered website, you don’t have to place all of your pages on the same level. The content management system (CMS) supports multiple levels of page hierarchy. You can use child pages, for instance. Child pages look like standard pages, but they feature a lower level of hierarchy. Depending on the purpose of your website, you may want to use child pages.

What Is a Child Page?

Not to be confused with a child theme, a child page is a WordPress page that’s assigned under another page. Whether you’re creating a new page or editing an existing page, you can assign it under another page. It will then become a child page.

Child pages allow for parent-child hierarchy. Each child page has a parent page. Parent pages are simply the pages under which child pages are assigned.

Benefits of Using Child Pages

You can use child pages to organize your website’s content. Rather than placing all of your pages on the same level, you can assign specific pages under relevant parent pages. If your website sells products, for example, you can create a parent page titled “Products.” You can then create a child page for each product while assigning them under the “Products” page.

For any business-related website, you may want to create a parent page titled “About Us.” You can then assign relevant pages like “Meet Our Team” and “Company History,” under this parent page. With child pages, you can organize your website’s content. If a particular page covers a general topic, you can assign relevant child pages under it.

WordPress supports child categories as well. A child category is a lower-level category that’s assigned under a parent category. But the problem with child categories is that they only work with posts. You can place posts in one or more child categories, but you can’t place pages in them. For a parent-child hierarchy with pages, you’ll need to use child pages.

See also  How to Start a WordPress Blog in Six Easy Steps

Child pages offer meaningful search engine optimization (SEO) benefits. When you create a child page, it will retain the URL slug of the parent page under which it’s assigned. The child page will still have a unique URL. Rather than example.com/child-page-name, though, its URL will be formatted as example.com/parent-page-name/child-page-name. In other words, the child page will feature the parent page’s URL slug, followed by its own URL slug.

Because child pages retain their parent pages’ URL slugs, search engines can better understand them. They’ll recognize child pages as being relevant to their parent pages. Search engines will perceive parent pages as covering general topics, and they’ll perceive child pages as covering specific content that’s related to those topics.

How to use Child Pages

Creating child pages in WordPress is a breeze. You can create them like all other pages by using either the Gutenberg or Classic editor. Both editors have an option to assign pages under a parent page, thus allowing you to create child pages.

When using the Gutenberg editor, you can assign a page under a parent page by selecting the “Page Attributes” option in the right-hand column. Clicking the empty field for “Parent Page” will allow you to choose the parent page.

You can assign a child page under a parent page in the Classic editor as well. The Classic editor has a similar “Page Attributes” option in the right-hand column but without the empty “Parent Page” field of its Gutenberg counterpart. Selecting the “Page Attributes” option will reveal a drop-down menu for “Parent.” You can click this drop-down menu to choose the parent page.

See also  Call To Action Block: WordPress Gutenberg

Tips for Using Child Pages

If you’re going to use child pages, you should customize your website’s navigation menu to show their hierarchy. Navigation menus in WordPress can be customized with hierarchy. When you create a new navigation menu in the CMS, you can add pages, as well as posts, to it. However, you’ll need to stagger child pages in the navigation menu to show their hierarchy.

After adding a child page directly below the parent page on the navigation menu, click the former and drag it to the right. The child page should snap into place it into place so that it’s slightly to the right of the parent page. WordPress will also give the child page the “sub-item” label.

The “sub-item” label denotes a sub-level page or post, such as a child page. When hovering your cursor over a parent page on the navigation menu, it will expand to reveal links to the child pages with the “sub-item” label. Without the “sub-item” label, visitors may not distinguish between your website’s parent pages and its child pages.

For three or more levels of hierarchy, you can assign child pages under other child pages. Pages can function as both child and parent pages. Pages are neither child nor parent by default. A page becomes a child page when it’s assigned under another page. A page becomes a parent page, conversely, when another page is assigned under it.

You can create three or more levels of hierarchy by assigning a child page under another child page. If your website sells clothing, you may want to create a top-level page for “Products,” followed by two middle-level pages for “Men’s Clothing” and “Women’s Clothing.” You can then create bottom-level pages for your site’s various products while assigning them under the “Men’s Clothing” or “Women’s Clothing” pages.

See also  Flatsome Theme

Keep in mind that there’s no such thing as a child post. You can’t assign posts under other posts. For post hierarchy, your only option is to use child categories. For page hierarchy, on the other hand, you can use child pages.

You don’t have to use a flat, single-level page hierarchy when building a WordPress-powered website. Instead, you can use child pages. Child pages are defined by their lower-level hierarchy. They are assigned under another page, which is the parent page.

Using child pages with WordPress will allow you to neatly organize your website’s content and improve its SEO.

Sharing is caring!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You cannot copy content of this page