Hello,
I was wondering if anyone would be able to help me with a problem I am having with creating a WordPress Plugin.
When someone activates my plugin, I want the plugin to go ahead automatically and generate multiple pages with different names, content and URL. For example:
//Page Name, Page Content, Page URL
Red page, hello red, /pages/page-red/
Green page, hello green, /pages/page-green/
Yellow page, hello yellow, /pages/page-yellow/
If anyone could how to do this I would be very grateful! I have managed to get a bit of script working that creates one page, however it does not have the URL option I want or the ability to create multiple pages.
Thanks in advance