I use the following code in my themes function file inorder to automatically insert the contact for in particular categories when it is a single page. This code worked with no issues until I upgraded gforms today. Here is the code:
/** Add gravity forms so it loads properly
gravity_form_enqueue_scripts(1, true);*/
/** Add a contact form at the end of single posts based on category*/
add_action('genesis_after_post_content', 'insert_form');
function insert_form() {
if (is_single() && in_category(array(40,39))) {
gravity_form(1, true, true, false, '', true);
}
}
Now, after upgrade gforms, I get this crash fatal error:
Fatal error: Call to undefined function gravity_form_enqueue_scripts() in /home/tim/public_html/wp-content/themes/prose/functions.php on line 163
If I delete the line about enqueue, I get the following error:
Fatal error: Call to undefined function gravity_form() in /home/tim/public_html/wp-content/themes/prose/functions.php on line 169
How do I fix this? I just want the form to show on those category single pages. (worked fine until I did the plugin update today.
Thanks!
Bill