Thank you for your kind words!
It appears that the custom field may not actually contain the document URL but some kind of reference, I’m guessing another custom field name. (?)
If yes, then this modification may solve the issue:
This will try to get the custom field value, which is returned from the ‘_attach_document’ field, which is hopefully the URL. Let me know what changes.Best,
If you like my products, don't forget to rate them on codecanyon :)