Hi,
I'm trying to call upon a gravity form using PHP but am not quite sure how to do this when I have a field that I would like to populate with a value.
Below is a basic idea of what I have ... but I don't know how to get the $address value into a gravity form dynamically populated field that I called address_info.
<?php
if (is_single() ){
$address = "some-address-info";
echo gravity_form(1, false, true, false, '', true);
}
?>
I read the documentation and it talks about an array but still not sure how this is supposed to be setup. Also, I'm unable to use the do_shortcode approach either since it doesn't seem to be working at all where I need it. The method above atleast generates the form. I'm try to use this code with the Genesis Framework Simple Hooks, which is why I need the method above to work and not the do_shortcode.
Thanks in advance!