Skip to content

Instantly share code, notes, and snippets.

@polevaultweb
Created October 2, 2019 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save polevaultweb/835431b40362d8e61ba7b25199496f10 to your computer and use it in GitHub Desktop.
Save polevaultweb/835431b40362d8e61ba7b25199496f10 to your computer and use it in GitHub Desktop.
Use Ninja Forms File Upload fields as the source of an ACF Gallery field, when using the Post Creation addon.
@polevaultweb
Copy link
Author

polevaultweb commented Oct 2, 2019

Add the above file to the wp-content/mu-plugins/ directory (create it if it doesn't exist).

Insert the File Upload mergetag as the meta value in the NF Create Post action, then add :attachment_id to the end eg. {field:file_upload_241:attachment_id}

image

@cedriccharles4
Copy link

Hi there :) !

Little question: How can we map a NF upload field with single ACF Image field? Can't find how...
Thank you :)

@polevaultweb
Copy link
Author

@cedriccharles4 you would do it in the same was as described here

@cedriccharles4
Copy link

Thank you, I've achieved my goal ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment