Where Is Page Parent in WordPress?

If you want to create a child page in WordPress, you need to use the wp_create_page() function. This function takes one parameter: the name of the new page.

The name of the page will be the name of the file that WordPress creates. The name of the file will be the same as the name of the page, minus the .

php extension.

For example, if you want to create a page called “MyPage”, you would use the function like this:

wp_create_page(“MyPage”);

The wp_create_page() function will create a file called “MyPage.php” in your WordPress installation.

The file will be empty, and you will need to add content to it to create a child page.

The wp_create_page() function will also create the file’s directory. The directory will be named after the name of the page, minus the . For example, if you use the function to create a page called “MyPage”, the directory will be called “MyPage”.

Finally, the wp_create_page() function will create a file called “config.php” in the same directory as the page’s file.

This file will contain information about the page, including its name, description, and contact information.

The wp_create_page() function will return the ID of the newly created page. You can use this ID to reference the page in your code.

The wp_create_page() function is a great way to create a new page in WordPress. It’s easy to use, and it returns all the information you need about the page.