abda53
Member
- Jun 10, 2022
- 84
- 92
- 18
I'm a web developer and a lot of times I will need to mass create pages, so I created a script that will do this for me. It currently only works for the first child of pages.. I may work on expanding the script more if I ever get free time.
github.com
To use:
add the content from create-pages.php it into your functions.php
Log into wp-admin with your admin account and append ?create_pages=mc893nois (or &create_pages)
Delete the code once done
Notes:
- You can change the create_pages code to whatever you want
- edit the $needed_pages array starting on line 8 to whatever page structure you want
- If the page exists, it will not add it
I built this for a previous site I worked on and didn't run into any issues with it, but if you do just leave a message.
Please hit the Like button if this is helpful!
GitHub - abda53/wordpress-pages: Create wordpress pages on the fly with just an array
Create wordpress pages on the fly with just an array - abda53/wordpress-pages
To use:
add the content from create-pages.php it into your functions.php
Log into wp-admin with your admin account and append ?create_pages=mc893nois (or &create_pages)
Delete the code once done
Notes:
- You can change the create_pages code to whatever you want
- edit the $needed_pages array starting on line 8 to whatever page structure you want
- If the page exists, it will not add it
I built this for a previous site I worked on and didn't run into any issues with it, but if you do just leave a message.
Please hit the Like button if this is helpful!
Last edited: