Share this page : facebooktwitterlinkedinmailfacebooktwitterlinkedinmail

If you want to move pages under one page to another page, it’s faster to move them in the database.

E.g. if you have several pages under the page Networking, and you want to move them to be under another page Cisco.

Move all the subpages from Networking to Cisco:

1. Step 1, Fist open the page Networking, and click edit. notice that in the browser address area, you can see something like ” http://xxx.com/wp-admin/post.php?post=80&action=edit” , 80 is the ID of the page Networking.

Then note down the ID of the Cisco, let’s say it’s 100.

2. Step 2, open the phpmyadmin

Click SQL, in the command area:

UPDATE `database_name`.`wp_posts` SET `post_parent` = '100' WHERE `post_parent`=80;
  • database_name is the name of your wordpress database.
If you do not want to move all the pages:

First find the pages’ ID you want to move, use this command to list all the pages under page Networking:

SELECT * FROM `wp_posts` WHERE `post_parent`=80

Write down all the page ID in the ID column, eg. I want to move pages with ID 7282,911,7284,80,585,6720:

UPDATE `database_name`.`wp_posts` SET `post_parent` = '531' WHERE `wp_posts`.`ID` in (7282,911,7284,80,585,6720);