How to Display Daughter Pages in WordPress: Quick Guide

If you want to organize your content effectively in WordPress, it's critical to understand how to display child pages. This article will guide you through the necessary steps to achieve this, as well as best practices and examples that can help you implement this functionality on your website.

What are WordPress Daughter Pages?

In WordPress, the daughter pages are sub-pages that depend on a main or "parent" page. This hierarchy allows you to create a more organized and logical structure for your content, making it easier for users to navigate.

For example, if you have a page called "Services", you could have child pages for "Graphic Design", "Web Development" and "Digital Marketing".

How to Create Daughter Pages

To create child pages in WordPress, follow these steps:

  • Log in to your WordPress administration panel.
  • Go to "Pages" and select "Add new".
  • Write the title and content of the new page.
  • In the "Page Attributes" section, select the parent page from the drop-down menu.
  • Publish the page.

Once you have created your child pages, you can proceed to display them on your site.

Show Child Pages in Navigation Menus

One of the most common ways of show child pages is through the navigation menus. To do this, follow these steps:

  • Go to "Appearance" and select "Menus".
  • Select the menu you want to edit or create a new one.
    How to Display Daughter Pages in WordPress: Quick Guide
    Download our web maintenance guide Free of charge!
    Free guide for freelancers and small businesses that want to avoid surprises and improve their web performance.
  • Add the child pages you have created to the menu by dragging them.
  • Organize the child pages in the desired hierarchy.
  • Save the menu.

By doing this, your child pages will appear in the navigation menu, allowing visitors to access them easily.

Example of Menu with Daughter Pages

Imagine you have a navigation menu that includes "Services", with sub-items for "Graphic Design" and "Web Development". The menu would look like this:

  • Home
  • Services
    • Graphic Design
    • Web Development
  • Contact

Show Child Pages in the Content

In addition to navigation menus, it is possible to display child pages in the content of other pages. This can be done by using shortcodes or specific plugins.

A basic shortcode for displaying child pages could be the following:

[child-pages]

This shortcode must be added in the text editor of the parent page. To make it work, you may need a plugin that enables this functionality, such as "List Child Pages".

Using Plugins to Display Daughter Pages

There are several plugins that facilitate the display of child pages. Some of the most used are:

  • List Child Pages: Automatically displays child pages anywhere in the content.
  • Page-list: Allows you to customize the list of pages and subpages.
  • WP Page Tree: It facilitates the visualization of the page hierarchy in a tree format.

Show Daughter Pages in Widgets

Another interesting option is to display child pages in the sidebar or footer using widgets. To do this, you must:

  • Go to "Appearance" and select "Widgets".
  • Drag a text widget or a specific widget for page lists to the desired location.
  • Configure the widget to show only the child pages of the parent page you want.

This provides an additional way to navigate your content without users having to return to the home page.