Extends the [gallery] shortcode to be able to create galleries from image taxonomies or the featured images of specific Posts.
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.
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.
For more information on ways to use PhotoPress and other plugins to build a photpgraphy website check out the WordPress For Photographers e-Book.
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:
post_gallery_attachments
– can be used ot filter the list of Post objects that the gallery shortcode will pull its images from.post_gallery_styles
– can be used ot append/prepend/replace the inline style generated by the gallery shortcodepost_gallery_pre_output
– can be used to prepend HTML to the gallery markup. Handy for wrapping the gallery in a container.post_gallery_caption
– can be used to filter the caption text used by the gallerypost_gallery_post_output
– can be used to append HTML to the gallery markup. Handy for adding a closing tag or addtional dom elementsphotopress-galleries
plugin folder to your /wp-content/plugins/
directory[gallery taxonomy=photos_city term=yosemite]
. (see screenshot)photopress-galleries
plugin folder to your /wp-content/plugins/
directory[gallery taxonomy=photos_city term=yosemite]
. (see screenshot)There are a few reasons:
You would need to register a custom taxonomy for attachments/images or you could just use the PhotoPress – Image Taxonomies 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.
removing srcset attribute from gallery thumbnail/icons to prevent browsers from needlessly downloading larger versions of the image.
Added gallery_item_class, gallery_item_properties, gallery_icon_class, gallery_icon_properties, gallery_caption_class, and gallery_caption_properties filters.
Bug fixes
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.
Changed plugin priority to 99 so that other gallery filters do not take over.
Adding support for WP 3.5
Initial version of plugin.