PHP noob here…. and I have a hunch this should be easy.
I’m making a custom page that is displaying and using some post data and ACF data. In it, I’m dropping a gravity form using:
<?php gravity_form( $id , false, false, false, '', true, 1 ); ?>
Where $id represents the form id of the form I want to display on this page. I have an ACF field to define the form id. But I want to define $id from an ACF field.
This is how I would want it to work, but I know this isn’t proper PHP coding:
<?php gravity_form( get_field('event_registration_form_id'); , false, false, false, '', true, 1 ); ?>
So with that, how do I inject the ACF field into the middle of the gravity_form code?