Home › Forums › General Issues › Add ACF Field into PHP (Gravity Forms) › Reply To: Add ACF Field into PHP (Gravity Forms)
I solved this 5min after posting it…
<?php $form_id = get_field('event_registration_form_id'); ?>
<?php gravity_form( $form_id , false, false, false, '', true, 12 ); ?>
Not sure that is the cleanest or ‘proper’ way but it works 🙂 If there is a better way to do it, let me know. Again, php noob here.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.