Hello :slight_smile:
I’m trying to customly integrate the New Blogs Templates plugin into Gravity Forms where it’s bound on the user selection (unknowingly).
The code provided within the plugin is quite cloudy as an outsider. I’m wondering what I need to send to WordPress to overwrite the default template and select the one based upon a selection.
A simple mock-up code would look like this:
$awesome_template = '1';
$another_template = '2';
$selected_form_option = strstr($entry['9'], '|', true); // outputs e.g. 1, 2 or 3
if ($selected_form_option == 2) {
add_blog_option($site_id, 'blog_template', $awesome_template);
} else if ($selected_form_option == 3) {
add_blog_option($site_id, 'blog_template', $another_template);
}
I’m quite unsure if this would work because I see you guys are integrating the nbt_get_model function which does a lot of SQL queries…
I also cannot find this meta value back on the existing blogs using a template.
Any idea’s?