Skip to content
billerickson edited this page Oct 12, 2012 · 5 revisions

If you're a developer, there's a ton of filters in here to customize it specifically to your needs:

be_gallery_metabox_post_types
An array of post types the metabox should be visible on.
Default: array( 'post', 'page' )
Example: http://www.billerickson.net/code/gallery-metabox-custom-post-types/

be_gallery_metabox_limit
Allows you to further refine your metabox by limiting it to specific pages or page templates
Default: true
Example: http://www.billerickson.net/code/limit-gallery-metabox-to-specific-page/

be_gallery_metabox_context
Whether to display it in the main area or sidebar.
Default: normal

be_gallery_metabox_priority
Priority of metabox.
Default: high

be_gallery_metabox_args
Query args for image listing. Useful if you're adding custom fields to media library
Example: http://www.billerickson.net/code/gallery-metabox-show-images-marked-include-in-rotator/

be_gallery_metabox_intro
Text displayed above image listing.
Default: Upload Images | Manage Gallery | Update Gallery

be_gallery_metabox_image_size
The image size displayed in the metabox.
Default: thumbnail

be_gallery_metabox_remove
This is the red "x" in the corner of images that lets you unattach them from the post.
To remove it, add this to your theme/plugin: add_filter( 'be_gallery_metabox_remove', '__return_false' );

be_gallery_metabox_output
The actual HTML to output for each image.

More code examples: http://www.billerickson.net/code-tag/gallery-metabox/

Clone this wiki locally