How can I attach a file using Wordpress custom fields / meta boxes?
- by shipshape
I am using Wordpress's add_meta_box() function to add customized meta fields to the Add New Post page, like this. I want one of these fields to allow the user to upload a file, so that a single image, pdf, audio file, or video can be associated with the post.
The closest example I've seen is this one. Unfortunately it does not suit my needs, as I…