前言介紹
- 這款 WordPress 外掛「Featured Galleries」是 2014-02-26 上架。
- 目前有 4000 個安裝啟用數。
- 上一次更新是 2018-08-02,距離現在已有 2466 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.8.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.4 以上。
- 有 20 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
kelderic | drivingralle |
外掛標籤
admin | images | backend | featured | galleries |
內容簡介
開發 Hello 佈景主題的開發人員們,您好!
您是否曾經想要為一篇文章新增多個特色圖片呢?現在透過「Featured Galleries」外掛,您就可以這麼做了!這個外掛和 WordPress 的 Featured Images 功能類似,唯一的不同是文章會有整個圖庫而非只有單一圖片。這些圖庫幾乎和 Featured Images 相同,利用了 WordPress 內建的媒體管理器。使用者可以透過簡單的拖放介面選擇圖片、定義順序和儲存圖庫。
註:此外掛不處理前端 HTML 建立,這留給佈景主題處理以允許最大彈性。Featured Galleries 只處理後端/管理面板介面建立特色圖庫並把它們存為 Metadata。您需要將其整合到您的佈景主題中,或使用內建整合功能的佈景主題。
快速入門整合到佈景主題
有關更多資訊,請參閱GitHub Wiki。
我試著將這個框架做成盡可能直觀的方式。佈景主題可以按照加入 Featured Images 的方式將 Featured Galleries 加入其中。在任何模板檔案中,佈景主題將呼叫get_post_gallery_ids() 函式以顯示該圖庫。只要在迴圈中使用,此函式不需要任何參數,預設會返回一個包含圖片 ID 的陣列。
範例
在迴圈中設置。這會以陣列形式返回 Featured Gallery 中的所有圖片,然後使用 HTML 標籤來迴圈顯示每個圖片。
$galleryArray = get_post_gallery_ids();
foreach ( $galleryArray as $id ) {
echo '';
}
您也可以自訂從函式中返回的值以符合您的需求。請參閱函式文件的完整頁面以取得詳細資訊。
自訂文章類型
此外掛附帶一個篩選器,以便輕鬆地將 Featured Galleries 加入自訂文章類型中。詳細資訊請參閱fg_post_types 的文件頁面。
自訂媒體管理器
媒體管理器可以以多種方式進行自訂,詳細資訊請參閱fg_show_sidebar 和 fg_use_legacy_selection 篩選器文件頁面。
想要幫忙嗎?
我非常歡迎您協助國際化本外掛。曾經是可以運作的,但現在則需要重新呈現,因為我不太了解它的運作原理。
原文外掛簡介
Hello Theme Developers!
Have you ever added a Featured Image to a post and thought to yourself, “I wish I could add more than one image this way”? Well, now you can. Featured Galleries mirrors the Featured Images functionality of WordPress. The only difference is that posts get an entire gallery rather than just a single image. These galleries behave almost exactly like Featured Images, and make use of WordPress’s built in Media Manager. Users can select images, define the order, and save the gallery, all through a simple drag-n-drop interface.
Note: This plugin DOES NOT HANDLE THE FRONTEND HTML CREATION. That is left for themes to handle, to allow for maximum flexibility. Featured Galleries just handles the backend/admin interface for creating featured galleries and storing them as metadata. You will need to integrate this into your theme, or use a theme with prebuilt integration.
Quick Start Guide to Integrate Into Themes
For more information, see GitHub Wiki.
I’ve tried to make this as intuitive as possible. Themes can integrate Featured Galleries in the same way they integrate Featured Images. Inside any template file where the gallery should appear, the theme will call the get_post_gallery_ids() function. As long as it is used inside the loop, the function doesn’t need any parameters. By default, it will return an array of image IDs.
Example
Set inside the Loop. This returns all images in the Featured Gallery, as an array, then loops through to display each using an HTML tag.
$galleryArray = get_post_gallery_ids();
foreach ( $galleryArray as $id ) {
echo '';
}
You can also customize the returned value from the function to suit your needs. See the full function documentation page for details.
Custom Post Types
The plugin comes with a filter to easily add Featured Galleries to custom post types. See the fg_post_types documentation page for details.
Customizing the Media Manager
The media manager can be customized in sevearl ways. See the fg_show_sidebar and fg_use_legacy_selection filter documentation pages for details.
Want to Help?
I’d love some help with internationalization. It was working at one point, but drivingralle did that code because I don’t really understand it, and I’m not sure it’s still working.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Featured Galleries」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.0.1 | 1.1.0 | 1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 | 1.1.6 | 1.2.0 | 1.2.1 | 1.2.2 | 1.2.3 | 1.2.4 | 1.3.0 | 1.3.1 | 1.4.0 | 1.4.1 | 1.4.2 | 1.4.3 | 1.4.4 | 1.5.0 | 1.6.0 | 1.7.0 | 1.7.1 | 2.0.0 | 2.0.1 | 2.1.0 | trunk |
延伸相關外掛(你可能也想知道)
Responsive Lightbox & Gallery 》提供完整的 WordPress 相簿外掛所需一切, Responsive Lightbox and Gallery 外掛是一個全功能的 WordPress 相簿外掛,擁有強大的拖放相簿生成器和 Lightbox ...。
Lightbox Gallery 》重要性:, 從 0.7.1 版本開始,插件目錄的版權規定導致默認顯示方式更改為 Colorbox。如果您希望使用 Lightbox 取代 Colorbox,您需要從設置頁面獲取腳本。, ...。
Easy Image Gallery 》這個外掛允許你在任何文章、頁面或自定義文章類型中輕鬆地創建圖片展廊。, 可以從 metabox 中添加和預覽圖像,並可以通過拖放重新排序圖像。, 關於:, 當你需...。
Gallery Manager 》Gallery Manager 是最具創新的現代化 WordPress 圖庫管理工具,讓你輕鬆地在 WordPress 後端組織圖庫。此外,這個圖庫外掛會在你網站上所有指向圖片的連結上...。
File Gallery 》「File Gallery」擴展了WordPress的媒體(附件)能力,通過添加一個新的圖庫短代碼處理程序,支持模板,為編輯文章時的附件處理添加新界面等等…以下是功能列...。
Responsive Media Gallery Plugin for WordPress – Everest Gallery Lite 》示範|文檔|支援, Everest Gallery Lite 是一款功能強大的圖庫外掛程式,提供多種選項和無瑕功能。您可以隨意添加多個圖庫項目,快速編輯和管理它們。此外,...。
Photo Galleria 》「Photo Galleria」是一個簡單而優雅的 WordPress 外掛,適合攝影師和設計師使用,能夠美化和簡化 WordPress 照片庫。該外掛會篩選預設的 WordPress 照片庫短...。
Flickr – Pick a Picture 》此外掛允許您在 WordPress 安裝的任何位置挑選 Flickr 的創用 CC 授權圖片,該外掛將保留原始 Flickr 作者的歸屬,以遵守 CC 歸屬授權條款。, 此外掛利用最新...。
FancyBox Gallery 》FancyBox Gallery將FancyBox jQuery外掛整合到WordPress圖庫功能中。只需使用圖庫短代碼在文章中顯示縮略圖,並選擇直接連結圖片(而不是附件模板),該外掛...。
Remote Images Grabber 》這個外掛可以讓你不必費時地從網路上下載圖片再上傳到你的部落格,取而代之的是直接抓取網路上的圖片。當你需要將舊的非 WordPress 網站轉移到基於 WordPress...。
PiwigoPress 》PiwigoPress 是一個 WordPress 的側邊欄小工具,可以連結到 Piwigo 庫中公開的某些圖片,因此,需要有一個包含多張公開圖片的 Piwigo 庫才能使用。即便你還沒...。
Metaphor Galleries 》此外掛創建了自訂的相簿文章類型,可用於顯示你的相片和影片。, 更多詳細資訊和設定即將推出,敬請期待。。
Modal Portfolio 》英文說明, Modal Portfolio 可以用於英文和法文的網站。使用短代碼 [modal-portfolio](可以選擇加入或不加入選項)來在模態窗中顯示圖片庫(可選擇加入影片...。
Image Wall 》這個 WordPress 外掛允許訪客通過在無限滾動的圖片牆上隨機展示的圖片瀏覽文章或頁面。圖片返回它們所附屬的文章或頁面。, 圖片是非常強大的,它們能夠引起我...。
WP-SmugMug 》WP-SmugMug 可以將你的 SmugMug 相簿整合到 WordPress 博客的文章和頁面中。SmugMug 是一個流行的在線照片分享網站,位於 http://www.smugmug.com/。, 拜訪WP...。