Hey guys. In order to get fotobook looking sweet with my theme I need to be able to specify which template the pages are created with. I tried the following, but it didnt work.
// add a photo album page if there is none
if(get_option('fb_albums_page') == 0) {
$page = array(
'post_author' => 1,
'post_content' =>'',
'post_title' =>'Photos',
'post_name' =>'photos',
'comment_status' =>1,
'post_parent' =>0
);
// add a photo album page
if(get_bloginfo('version') >= 2.1) {
$page['post_status'] = 'publish';
$page['post_type'] = 'page';
} else {
$page['post_status'] = 'static';
}
$page_id = wp_insert_post($page);
update_option('fb_albums_page', $page_id);
update_post_meta($page_id, "_wp_page_template", "template-full-width.php");
}
I added the update_post_meta($page_id, "_wp_page_template", "template-full-width.php"); to the page creation php in options-fotobook.php. Anyone have any other ideas?