Adding page template via plugin
-
I just built a plugin for someone that allows them to insert a simple weekly schedule of classes they are running for school. With the plugin I had to create 2 custom page templates in my child-themes folder that holds the display code for the schedule itself and another page to display details about the class. I am trying to wrap my head around how to include the page creation on plugin activation instead of having to manually create the pages and insert them into my theme.
I am playing with wp_insert_post but am having no luck. Any help would be greatly appreciated…thanks.
Please let me know if this makes sense and if not I will try to explain the issue in better detail.
The topic ‘Adding page template via plugin’ is closed to new replies.