bobbingwide / oik-media

oik-fields extension for Media - attached images and other files
GNU General Public License v2.0
0 stars 0 forks source link

Add 'media' field type for associating specific attachments to a custom post type #1

Open bobbingwide opened 8 years ago

bobbingwide commented 8 years ago

Plugins such as CMB2, ACF, Easy Digital downloads and WooCommerce have post meta fields which record values for attached media such as images or files.

On the bigram.co.uk website the bigram Custom Post Type uses the featured image field ( _thumbnail_id ) to record the ID of the image which should be displayed for the bigram.

We want to make it easy to use the WordPress front-end to upload an image and associate it with a bigram. A media field type would allow the [bw_new] shortcode to automatically accept a file upload.

This solution may also be used for oik-plugins and oik-themes. Currently the .zip file is attached to the plugin or theme version and the code works out the rest. Allowing the ID to be specified directly may save us some effort.

Requirements

A further requirement - On meta boxes add logic to allow media upload - does not seem necessary at this time. We assume that this can be satisfied using the following process

Note: This may require a refresh.

bobbingwide commented 8 years ago

This change requires co-requisite changes in oik and oik-fields.