check current pages is a child page wordpress

To check if a WordPress page is a child page, you can follow these steps:

  1. Access the WordPress Dashboard: Log in to your WordPress admin panel.

  2. Navigate to the Pages Section: Click on the "Pages" menu on the left-hand side of the dashboard.

  3. Locate the Page: Find the page you want to check.

  4. Check Page Attributes: Click on the page title to edit it. On the right-hand side, locate the "Page Attributes" box.

  5. Look for Parent Page: In the "Page Attributes" box, if there's a "Parent" dropdown menu and it has a selected page, then the current page is a child page of the selected parent page. If there's no selected parent, it means the page is not a child page.

By following these steps, you can determine whether a specific WordPress page is a child page or not.