Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

banfw001 on "Creating Multiple Pages With Content On Activation"

$
0
0

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


Viewing all articles
Browse latest Browse all 8245

Trending Articles