WordPress.org

Ready to get started?Download WordPress

Plugin Directory

PhotoPress - Gallery

Extends the [gallery] shortcode to be able to create galleries from image taxonomies or the featured images of specific Posts.

Example Usage

Display a gallery of images from an image taxonomy called "photo_keywords" that match a taxonomy term called "flower":

[gallery taxonomy="photo_keywords" term="flowers"]

Display a gallery of of images with no captions:

[gallery caption_source="none"]

Display a gallery of the featured images from a specific set of pages:

[gallery post_type="page" ids="123,456,789"]

Display a gallery of the featured images from the child posts of a specific page:

[gallery post_type="page" id="123"]

Display a gallery of the featured images from a specific set of posts that use a custom post type:

[gallery post_type="my_custom_post_type" ids="123,456,789"]

Developer Documentation

Please read the inline code documentation for more details.

List of Gallery related filters this plugin implements:

  1. post_gallery_attachments - can be used ot filter the list of Post objects that the gallery shortcode will pull its images from.
  2. post_gallery_styles - can be used ot append/prepend/replace the inline style generated by the gallery shortcode
  3. post_gallery_pre_output - can be used to prepend HTML to the gallery markup. Handy for wrapping the gallery in a container.
  4. post_gallery_caption - can be used to filter the caption text used by the gallery
  5. post_gallery_post_output - can be used to append HTML to the gallery markup. Handy for adding a closing tag or addtional dom elements

Requires: 3.7 or higher
Compatible up to: 3.7.1
Last Updated: 2014-2-24
Downloads: 4,042

Ratings

3 stars
3.3 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

50,2,1
100,1,1