How to attach multiple files to a Wordpress post?

Posted by erik.brannstrom on Stack Overflow See other posts from Stack Overflow or by erik.brannstrom
Published on 2010-06-07T11:51:21Z Indexed on 2010/06/07 13:52 UTC
Read the original article Hit count: 328

I'm currently working on a project where we are using Wordpress 3.0 RC. The idea is to create custom post types with meta boxes to make the system easier to use for the client. Some of these posts need to have multiple files attached to them, and by attached I do not mean inserted to post but rather we'd like to keep them separate from the post body (in fact, a given post type might not even have text, only files).

I'm wondering if there is a standard approach for allowing multiple files to be attached to a Wordpress post? I've managed to add a meta box that allows one file from the media library to be selected, but I have no idea how to extend this to allow an arbitrary number of files. Hope someone can help!

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about wordpress-theming