Hello,
I have searched all over this forum and outside for some help with this issue I'm having.
I want to extract the photo file url via the Entry object.
I've tried calling the entry object post image from an action hook on gform_after_submission.
All works well except when I need to get the data. I test it with...
<script>alert('<?php echo $entry[7]; ?>');</script>
but the output I get in an alert box for this is:
http://www.giantsintheforest.com/wp-content/uploads/gravity_forms/4-579a0ef92f79dc5030d7b0a999e94fb9/2012/04/Penguins2.jpg|:|photo title|:||:||:|272
I've tried using the php explode function, to give me just the URL, but cannot split it using a seperator of '|:|'
My aim is to resize all uploaded images by calling a resize php class function whenever there is an image upload in the form, It may be better to call the action before submission I suppose? I want to keep the images reduced in all areas of wordpress, inc the media library.
Please help!