Title: PhotoPress &#8211; Gallery
Author: padams
Published: <strong>January 11, 2012</strong>
Last modified: March 23, 2018

---

Search plugins

![](https://ps.w.org/photopress-gallery/assets/banner-772x250.jpg?rev=863772)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/photopress-gallery_cccccc.svg)

# PhotoPress – Gallery

 By [padams](https://profiles.wordpress.org/padams/)

[Download](https://downloads.wordpress.org/plugin/photopress-gallery.1.8.zip)

 * [Details](https://wordpress.org/plugins/photopress-gallery/#description)
 * [Reviews](https://wordpress.org/plugins/photopress-gallery/#reviews)
 *  [Installation](https://wordpress.org/plugins/photopress-gallery/#installation)
 * [Development](https://wordpress.org/plugins/photopress-gallery/#developers)

 [Support](https://wordpress.org/support/plugin/photopress-gallery/)

## Description

This plugin adds a variety of additional features to the core gallery shortcode 
that expand the options for specifying which images should be included in the gallery
including the ability to create dynamic galleries of images that match a specific
taxonomy “term”. This is particularly useful when used in conjunction with the [PhotoPress – Image Taxonomies](https://wordpress.org/extend/plugins/photo-tools-image-taxonomies/)
plugin which allows you to easily associate a wide variety of custom meta data with
images.

Also, the plugin can be used to create gallery containing with the featured images
of any Pages/Posts (even custom post types) that you specify. This is particularly
useful when creating a “Gallery of Galleries” or any grouping of Posts that you 
want to be styled like your other galleries.

#### Features Include:

 * Adds _“taxonomy”_ and _“term”_ gallery shortcode parameters.
 * Adds _“caption\_source”_ parameter so that you can choose the source of text 
   for your caption. Possible values are: “excerpt” (default), “title” (which pulls
   from the title), “none” (if you want no caption text).
 * Adds _“post\_type”_ parameter for use in creating galleries of post types other
   than “image attachments”. This parameter accepts any valid post type (e.g. “post”,“
   page”, etc.) including custom post types. If you use a post type other than ‘
   attachment’ then the featured image of the post will be used as the image icon
   in the gallery. This parameter can be combined with the “taxonomy” and “term”
   parameters as well.
 * Adds six backwards compatible filters to the core gallery shortcode allowing 
   plugin developers to control almost every aspect of the gallery HTML and CSS 
   on a per gallery basis.

#### Premium Support

The PhotoPress team does not provide support for this plugin on the WordPress.org
forums. One on one email support is available to users that purchase one of our 
[Premium Support Plans](http://www.photopressdev.com).

#### The Guide To WordPress For Photographers

For more information on ways to use PhotoPress and other plugins to build a photpgraphy
website check out the [WordPress For Photographers e-Book](http://wpphotog.com/product/the-guide-to-wordpress-for-photographers/).

### 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"]<h3>Developer Documentation</h3>
    ```

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

## Screenshots

[⌊Taxonomy and Term Shortcode Usage⌉⌊Taxonomy and Term Shortcode Usage⌉[

Taxonomy and Term Shortcode Usage

[[

## Installation

 1. Upload the `photopress-galleries` plugin folder to your `/wp-content/plugins/` 
    directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Add parameters to the gallery shortcode in your page/post like so `[gallery taxonomy
    =photos_city term=yosemite]`. (see screenshot)

## FAQ

  Installation Instructions

 1. Upload the `photopress-galleries` plugin folder to your `/wp-content/plugins/` 
    directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Add parameters to the gallery shortcode in your page/post like so `[gallery taxonomy
    =photos_city term=yosemite]`. (see screenshot)

  Why do I need this plugin?

There are a few reasons:

 1. You want to create dynamic galleries that contain images which match taxonomy meta
    data you have associated with your images.
 2. You want to create a “gallery of galleries” by display the featured images of specific
    Pages or Posts.
 3. You want per gallery control over image captions and the source of the text used
 4. You want to create a gallery that contains the featured images of pages or custom
    post types without having to resort to add/modify templates in your theme.

  How do I associate terms with images?

You would need to register a custom taxonomy for attachments/images or you could
just use the [PhotoPress – Image Taxonomies](https://wordpress.org/extend/plugins/photo-tools-image-taxonomies/)
plugin.

  What happens if I deactivate this plugin

If you are using the _taxonomy_ and _term_ shortcode params, then your galleries
will no longer display images.
 If you are using the _caption\_source_ param then
WordPress wil revert to using the excerpt as the source of the cpation text. if 
You are using the _post\_type_ param then your gallery will no longer display images.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“PhotoPress – Gallery” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ padams ](https://profiles.wordpress.org/padams/)

[Translate “PhotoPress – Gallery” into your language.](https://translate.wordpress.org/projects/wp-plugins/photopress-gallery)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/photopress-gallery/),
check out the [SVN repository](https://plugins.svn.wordpress.org/photopress-gallery/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/photopress-gallery/)
by [RSS](https://plugins.trac.wordpress.org/log/photopress-gallery/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.8

removing srcset attribute from gallery thumbnail/icons to prevent browsers from 
needlessly downloading larger versions of the image.

#### 1.7

Added gallery_item_class, gallery_item_properties, gallery_icon_class, gallery_icon_properties,
gallery_caption_class, and gallery_caption_properties filters.

#### 1.6

Bug fixes

#### 1.5

 * Fixes bug that could cause a taxonomy gallery to be empty

#### 1.4

 * Adds “caption_source” shortcode parameter.
 * Adds “post_type” shortcode parameter
 * Removing support for _include\_order_ as WordPress now supports that functionality
   by default in core

#### 1.3

Removing support for pre WP 3.5 ‘include-order’ shortcode param now that 3.5 supports
explicit ordering of images when using the ‘include’ or ‘ids’ shortcode params.

Fixed bug in column generation code.

#### 1.2

Changed plugin priority to 99 so that other gallery filters do not take over.

#### 1.1

Adding support for WP 3.5

#### 1.0

Initial version of plugin.

## Meta

 *  Version **1.8**
 *  Last updated **8 years ago**
 *  Active installations **50+**
 *  WordPress version ** 3.7 or higher **
 *  Tested up to **4.9.29**
 * Tags
 * [gallery](https://wordpress.org/plugins/tags/gallery/)[images](https://wordpress.org/plugins/tags/images/)
   [photos](https://wordpress.org/plugins/tags/photos/)[taxonomies](https://wordpress.org/plugins/tags/taxonomies/)
   [taxonomy](https://wordpress.org/plugins/tags/taxonomy/)
 *  [Advanced View](https://wordpress.org/plugins/photopress-gallery/advanced/)

## Ratings

 3.5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/photopress-gallery/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/photopress-gallery/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/photopress-gallery/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/photopress-gallery/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/photopress-gallery/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/photopress-gallery/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/photopress-gallery/reviews/)

## Contributors

 *   [ padams ](https://profiles.wordpress.org/padams/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/photopress-gallery/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://www.photopressdev.com)