https://github.com/josh-taylor/nhp-options-multi-upload
A multiple file upload field for NHP Options
https://github.com/josh-taylor/nhp-options-multi-upload
Last synced: 3 months ago
JSON representation
A multiple file upload field for NHP Options
- Host: GitHub
- URL: https://github.com/josh-taylor/nhp-options-multi-upload
- Owner: josh-taylor
- License: gpl-2.0
- Created: 2013-08-01T10:42:09.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-09-24T09:20:44.000Z (over 11 years ago)
- Last Synced: 2025-01-01T21:46:13.069Z (5 months ago)
- Language: PHP
- Size: 203 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
NHP Options - Multiple File Upload
==================================A multiple file upload field for NHP Options.
It allows you to upload multiple images in one field and can be used like any other of the standard NHP Option fields.
## Installation
To install, just clone or download a tarball of this repository and copy the multi_upload directory into your `NHP_OPTIONS/fields` directory.
To add it as a field modify your 'fields' key in the section you want to add it to using the type `multi_upload`.
```php
$sections = [] = array(
...
'fields' => array(
...
array(
'id' => 'my_multiple_upload_field',
'type' => 'multi_upload',
'title' => 'My multiple upload field'
),
...
)
```## Usage
To use inside your theme:
```php
global $NHP_Options;
$images = $NHP_Options->get('my_multiple_upload_field');foreach ($images as $image) {
echo "";
}
```