Skip to content

Instantly share code, notes, and snippets.

@GitFrankie
Created October 2, 2017 14:53
Show Gist options
  • Save GitFrankie/a8bb80226602f39fccd6e6e8e0789ef2 to your computer and use it in GitHub Desktop.
Save GitFrankie/a8bb80226602f39fccd6e6e8e0789ef2 to your computer and use it in GitHub Desktop.
Gravity Forms - ACF - Advanced Custom Fields - populate dynamic field
<!-- custom field -->
<?php $email = get_field('send_to_email');?>
<?php echo do_shortcode('[gravityforms id=1 title=false description=false field_values=get_email='.$email.']'); ?>
<!-- repeater -->
<?php $email = get_sub_field('send_to_email');?>
<?php echo do_shortcode('[gravityforms id=1 title=false description=false field_values=get_email='.$email.']'); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment