[wp-hackers] Additional file upload writeboxes for posts
Travis Northcutt
travis at travisnorthcutt.com
Tue May 31 15:21:21 UTC 2011
I don't have any advice regarding how to restrict the file types allowed,
but I suggest you take a look at
this<https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress>
for
creating your custom metaboxes. It includes a file upload box in
example-functions.php.
--
Travis Northcutt
On Tue, May 31, 2011 at 8:28 AM, graq <wordpress at graq.co.uk> wrote:
> I have a CPT that needs to allow for files (PDFs/docs) to be uploaded
> against posts. I figured I could store these as attachments, but I can't get
> my head around how to build a custom write box for managing attachments, and
> how to restrict that to certain file types. Can anyone kick start me in the
> right direction?
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list