Created
April 7, 2014 18:25
-
-
Save yellowberri-snippets/10027066 to your computer and use it in GitHub Desktop.
PHP: ACF: Gravity Form Field Embed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (get_field('gravity_form')) : ?> | |
<div id="contact-form"> | |
<?php | |
$contactForm = get_field('gravity_form'); | |
gravity_form( | |
$contactForm->id, | |
$display_title=true, | |
$display_description=false, | |
$display_inactive=false, | |
$field_values=null, | |
$ajax=true, | |
0 | |
); | |
?> | |
</div> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment