It works! My marketing director didn’t add the images to the fields…. should have checked that first. Doh..
Ok folks, the problem is Gravity Forms, not ACF. What you have to do is make the Gravity Form upload field point to a basic ACF TEXT field.
When you upload something through GF, it passes a URL to the location of the uploaded file. ACF needs more than a URL to recognize it as media. So unless GF releases an update where it returns an image object rather than a URL, this is the only work-around available when trying to use these plugins together.
If echo $tagstr; shows a value, then it sounds like tag=$tagstr is just returning zero results.
“Tag=” can only look for tag slugs. Are you sure that the value of $tagstr is equal to the tag slug?
http://codex.wordpress.org/Class_Reference/WP_Query#Tag_Parameters
Thanks, Elliot. Sounds like you guys are on top of it and its the other plugin that needs to change 🙂
Elliot,
Could you please elaborate on the “GF saves a URL instead of a link”?
If i pass a text field with the value…
<img src="http://website.com/image.jpg">
… instead of …
http://website.com/image.jpg
…would that do the trick? Because I’m having no luck with that.
Gravity forms has a hook called a pre_form_submission that can manipulate the value being sent through the form. I just need to know what the variable that I’m posting to the field should be in order for ACF to pick up the image upon GF submission.