PhotoPress – Gallery

0

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 abili

Version
Last updated
Active installations
WordPress Version
Tested up to
Rating
Total ratings
Tag
This plugin is outdated and might not be supported anymore.

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 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.

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.

Example Usage

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


Display a gallery of of images with no captions:


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


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


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

<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