Automatically create a "full width" page upon activation of a plugin
-
I have read through this post, which was very useful in allowing me to create pages with my plugin. However, does anyone know how to automatically create a page and make it full width?
There is already a full width template in the theme I am using called tpl-full-width.php –
<?php
/*
Template Name: Full Width Page
*/
?>I have tried adding the following to no avail:
$page[‘post_template’] = ‘full-width-page’;
$page[‘post_template_name’] = ‘full-width-page’;
$page[‘post_type’] = ‘full-width-page’;
$page[‘post_attribute’] = ‘full-width-page’;Please help if you can, thank you.
- The topic ‘Automatically create a "full width" page upon activation of a plugin’ is closed to new replies.