Use: Creates a form that lets users create a new 'gallery' post in Wordpress, which also lets them upload multiple images at once into a repeating image field created by Wordpress Types. Form optimized for Bootstrap 3.
[gallery_post_form]
This plugin was made to solve the painful process of manually adding each image, one at a time when using Types, by offering a way to add an entire gallery of images at once, from the frontend.
Developed on the basis of Dalton Rooney's file-upload-handler
*There are many fixed values and fields in this plugin, so if something isn't working, please open up the source code and see if your Wordpress settings match up. Hopefully we can improve this by adding more settings into the WP Admin.
**This plugin is likely missing security features, so please use conditional display to only let logged-in users with high permissions use the form in order to upload a gallery post. Further coding is needed to add nonces and verifications for use by guests or other users. With Toolset Access, this is very easy as you can simply wrap the shortcode in an Access display shortcode! Any suggestions are greatly appreciated!
- Toolset Types Plugin
- 'Gallery' (slug = gallery) custom post type with custom fields:
- a) photographer (wpcf-photographer) - A custom field for entering the photographer of the gallery you are adding
- b) gallery-image (wpcf-gallery-image) - A REPEATING custom field for uploading gallery images. In Types, you must select "allow multiple instances of this field" when creating the field.
- Bootstrap 3+ - Not necessarily a requirement, but the form includes classes to provide better display with Bootstrap.
- JQuery - Should be enabled on Wordpress anyways
- If you will be uploading many images, you may have to adjust these settings in your server's PHP ini file:
- a) max_file_uploads - A limit on number of files that can be uploaded at once
- b) max_execution_time - A limit on the time spent doing a task. In this case, uploading the files and creating the post
- c) upload_max_filesize - Total upload size