Skip to content

Instantly share code, notes, and snippets.

View helveticadomes's full-sized avatar

helveticadomes

  • Schweiz (Switzerland)
View GitHub Profile
@helveticadomes
helveticadomes / gp-media-library-attach-media-gform_advancedpostcreation.php
Last active July 17, 2020 09:13 — forked from spivurno/gp-media-library-attach-media.php
Gravity Perks // GP Media Library // ACF // Auto-attach Uploaded Files to Post created by "GF-Advanced Post Creation Add-On"
<?php
/**
* Gravity Perks // GP Media Library // ACF
* Auto-attach Uploaded Files to Post created by "GF-Advanced Post Creation Add-On"
* this function help if you wish to attach the Files to the Post you generate
* If you use ACF and limit File/Image/Gallery Field (Files uploaded to this post) this is necessary
*
* Install & Activate GP Media Library, Install & Activate Advanced Post Creation Add-On
* use GF-Upload-Field > Perk > Upload to Media Libray checkbox:true
* at Post Creation > Feed Settings => dont use Media Library (empty Select File Upload Fields)