[WordPress] 外掛分享: PhotoPress – Gallery

WordPress 外掛 PhotoPress – Gallery 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「PhotoPress – Gallery」是 2012-01-10 上架。
  • 目前有 60 個安裝啟用數。
  • 上一次更新是 2018-03-23,距離現在已有 2600 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.7 以上版本才可以安裝。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

padams |

外掛標籤

images | photos | gallery | taxonomy | taxonomies |

內容簡介

這個外掛會為核心畫廊短代碼添加多種額外的功能,擴展了指定包含圖像的選項,包括創建與特定分類法 "term" 符合的圖像的動態畫廊的能力。當與 PhotoPress - Image Taxonomies 外掛一同使用時,特別實用,該外掛允許您輕鬆地將各種自定義元數據與圖像關聯。

此外,該外掛可用於創建包含您指定的任何頁面/文章(甚至自訂文章類型)的特色圖片的畫廊。當創建一個 "畫廊的畫廊" 或您希望像其他畫廊一樣添加組合的文章時,這特別有用。

功能包括:

添加了 "taxonomy" 和 "term" 畫廊短代碼參數。
添加了 "caption_source" 參數,使您可以選擇標題文字的來源。可能的值為: "摘要" (默認)、"標題" (從標題中提取)、"無" (如果您不想要標題文字)。
添加了 "post_type" 參數,用於創建除了 "圖像附件" 以外的其他文章類型的畫廊。此參數接受任何有效的文章類型(例如 "文章"、"頁面" 等),包括自訂文章類型。如果您使用的是除 "附件" 之外的文章類型,則將使用文章的特色圖像作為畫廊中的圖像圖標。此參數也可以與 "taxonomy" 和 "term" 參數結合使用。
為核心畫廊短代碼添加了六個向後兼容的過濾器,讓外掛開發人員可以在每個畫廊上控制幾乎所有畫廊 HTML 和 CSS 的方面。

高級支援

PhotoPress 團隊不在 WordPress.org 論壇上提供該外掛的支援。一對一的電子郵件支援可提供給購買我們的 高級支援計劃 的用戶。

WordPress攝影師指南

有關使用 PhotoPress 和其他外掛構建攝影網站的更多信息,請查看 WordPress攝影師指南電子書。

示例用法

顯示一個圖像分類 "photo_keywords" 中符合 "花" 分類期 "term" 的圖像畫廊:

顯示一個沒有標題文字的圖像畫廊:

顯示來自特定頁面集的特色圖片的畫廊:

顯示來自具有特定頁面子級的特色圖片的畫廊:

顯示使用自定義文章類型的特定篇文章的特色圖片的畫廊:

開發人員文檔

請閱讀內聯代碼文檔以獲取更多詳細信息。

此外掛實現的畫廊相關過濾器列表:

post_gallery_attachments - 可用於過濾畫廊短代碼將從中提取其圖像的帖子對象列表。
post_gallery_styles - 可用於過濾在整個畫廊HTML上應用的樣式和佈局。
gallery_caption_source - 可用於過濾畫廊圖像的標題文字。
gallery_link - 可用於過濾要為每個圖像設置的鏈接URL。
gallery_image_size - 可用於過濾要使用哪個圖像大小(從樣式表中定義)以及任何自定義圖像尺寸。
gallery_item_attributes - 可用於過濾在所有圖像上應用的HTML屬性列表。

原文外掛簡介

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:

Developer Documentation

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 shortcode
post_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 gallery
post_gallery_post_output – can be used to append HTML to the gallery markup. Handy for adding a closing tag or addtional dom elements

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「PhotoPress – Gallery」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | trunk |

延伸相關外掛(你可能也想知道)

文章
Filter
Apply Filters
Mastodon