前言介紹
- 這款 WordPress 外掛「Attachments」是 2009-11-01 上架。
- 目前有 10000 個安裝啟用數。
- 上一次更新是 2022-02-10,距離現在已有 1179 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
- 有 53 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
page | post | pages | posts | images |
內容簡介
詳細的使用說明可在GitHub上找到。
Attachments外掛允許您從WordPress媒體庫中簡單地附件任何數量的項目到文章、頁面和自訂文章類型。
使用附加組件擴展功能
此外掛不直接與您的佈景主題互動,您需要編輯模板檔案。如果您喜歡使用UI,可以看看Attachments UI外掛。
將媒體項目與文章相關聯
Attachments的理念是讓開發人員能夠直接將媒體項目與任何文章相關聯。開發人員通過向文章編輯屏幕添加元框來實現此功能。媒體項目一旦與文章相關聯,您就可以檢索這些附件並使用任何特定的標記來直接在模板檔案中包含它們。
以細節控制附件與佈景主題相結合
Attachments不會自動與您的佈景主題整合。因為Attachments的理念是允許使用開發人員製作的唯一標記將媒體整合到文章中,所以完全由您來整合。最基本的整合包括編輯適當的模板檔案並添加Attachements的呼叫。例如,如果您已經設置Attachments用於文章條目,編輯single.php並在循環中包含以下代碼:
exist() ) : ?>
Attachments
Total Attachments: total(); ?>
ID: id(); ?>
Type: type(); ?>
Subtype: subtype(); ?>
URL: url(); ?>
Image: image( 'thumbnail' ); ?>
Source: src( 'full' ); ?>
Size: filesize(); ?>
Title Field: field( 'title' ); ?>
Caption Field: field( 'caption' ); ?>
get() ) : ?>
該代碼片段將在循環內查找當前文章所定義的所有現有Attachments,並為該Attachment檢索每個項目屬性。使用提供的詳細信息,您可以以任何方式將附加的媒體項目整合到您的文章中。
Attachments的GitHub頁面上還有更多詳細信息。歡迎貢獻!
路線圖
請參閱Attachments的GitHub頁面
用法
詳細的使用說明可在GitHub上找到。
原文外掛簡介
Extensive usage instructions are available on GitHub
Attachments allows you to simply append any number of items from your WordPress Media Library to Posts, Pages, and Custom Post Types.
Extend Attachments with add-ons
This plugin does not directly interact with your theme, you will need to edit your template files. If you prefer working with a UI, take a look at Attachments UI
Associate Media items with posts
The idea behind Attachments is to give developers the ability to directly associate Media items with any post. This is accomplished by adding a meta box to post edit screens as determined by the developer. Once Media items have been associated with a post, you’re able to retrieve those Attachments and include them directly within your template files using any specific markup you wish.
Integrate Attachments within your theme with fine grained control
Attachments does not automatically integrate itself with your theme. Since the idea behind Attachments is to allow integration of Media within posts using developer-crafted, unique markup, it’s up to you to integrate with your theme. The most basic integration includes editing the appropriate template file and adding your call(s) to Attachments. For example, if you have set up Attachments to be used with your Posts entries, edit single.php to include the following within The Loop:
exist() ) : ?>
Attachments
Total Attachments: total(); ?>
-
get() ) : ?>
-
ID: id(); ?>
Type: type(); ?>
Subtype: subtype(); ?>
URL: url(); ?>
Image: image( 'thumbnail' ); ?>
Source: src( 'full' ); ?>
Size: filesize(); ?>
Title Field: field( 'title' ); ?>
Caption Field: field( 'caption' ); ?>
That snippet will request all of the existing Attachments defined for the current Post within The Loop, and retrieve each itemized property for that Attachment. Using the provided details you’re able to integrate the attached Media items in any way you please.
There is a lot more information on Attachments’ GitHub page. Please contribute!
Roadmap
Please see Attachments on GitHub
Usage
Extensive usage instructions are available on GitHub
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Attachments」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0 | 1.1 | 1.5 | 1.6 | 3.1 | 3.2 | 3.3 | 3.4 | 3.5 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.7 | 1.0.8 | 1.0.9 | 1.1.1 | 1.5.1 | 1.5.2 | 1.5.3 | 1.5.4 | 1.5.5 | 1.5.6 | 1.5.7 | 1.5.8 | 1.5.9 | 1.6.1 | 1.6.2 | 3.0.6 | 3.0.7 | 3.0.8 | 3.1.1 | 3.1.2 | 3.1.3 | 3.1.4 | 3.3.1 | 3.3.2 | 3.3.3 | 3.4.2 | 3.5.1 | 3.5.2 | 3.5.3 | 3.5.4 | 3.5.5 | 3.5.6 | 3.5.7 | 3.5.9 | trunk | 1.5.10 | 1.0.4.1 | 1.0.4.2 | 1.0.7.1 | 1.5.1.1 | 1.5.1.2 | 1.5.3.1 | 1.5.3.2 | 1.6.2.1 | 3.0.8.1 | 3.0.8.2 | 3.4.2.1 | 3.5.1.1 |
延伸相關外掛(你可能也想知道)
WP Shortcodes Plugin — Shortcodes Ultimate 》Shortcodes Ultimate 是一個全面的視覺與功能性元素收集,您可以在文章編輯器、文字小工具甚至是範本檔案中使用。使用 Shortcodes Ultimate,您可以輕鬆地建...。
Post Duplicator 》這個外掛是用來製作選定文章的完全一模一樣複製。它支援自訂文章類型、自訂分類和自訂欄位。, *注意: 評論不會被複製到新文章。, 這個外掛的目的是為了快速且...。
GenerateBlocks 》將不同的功能整合至編輯器,但並不會因為過多的一維方塊造成內容過於臃腫。使用 GenerateBlocks,您只需深入學習少量的方塊,即可用於創建任何內容。, Genera...。
YARPP – Yet Another Related Posts Plugin 》WordPress 相關文章外掛, Yet Another Related Posts Plugin (YARPP) 是一個經過專業維護、高度自訂和功能豐富的外掛程式,可以顯示與當前文章相關的頁面、文...。
WP Meta and Date Remover 》移除點擊文章的Meta、作者和日期。 安裝、啟用,完成!, 如何移除文章和頁面的作者Meta和日期?, , 安裝 WP Meta and Date remover。, 啟用外掛。, 選擇隱藏...。
WordPress Popular Posts 》WordPress Popular Posts 是一個高度可定製的小工具,可以顯示您最受歡迎的文章。, 主要特點, , 多小工具功能 – 您可以在您的博客上擁有多個 WordPress...。
Public Post Preview 》此外掛可讓您分享一個鏈接給匿名使用者,以便他們在發布前預覽文章(或其他公開文章類型)。, 您是否曾經與沒有訪問您網站權限的人共同撰寫文章,並需要給予...。
List category posts 》List Category Posts 可以讓你透過使用 [catlist] 短碼在文章或頁面中按類別列出文章。在編輯頁面或文章時,直接插入短碼到文章中,文章就會被列出來。基本的...。
Display Posts – Easy lists, grids, navigation, and more 》Display Posts 讓您輕鬆地列出網站上的所有內容。首先在內容編輯器中新增此短碼,以列出最近的文章清單:, [display-posts], , 按類別篩選, 若只想顯示特定類...。
CMS Tree Page View 》將所有頁面和自訂文章以 CMS 樹狀概覽方式添加到 WordPress,類似於專注於頁面的 CMS 中經常找到的檢視方式。, 如果您的目標是將多個內容類型合併到單一檢視...。
Category Posts Widget 》Category Posts Widget是一個輕巧的小工具,設計用於一件事並且做得很好:顯示特定類別中最新的文章。, 基於詞語和類別的文章小工具, 這個免費小工具的高級版...。
WP Telegram (Auto Post and Notifications) 》完美整合 Telegram 至 WordPress,讓您完全掌握控制。, Telegram 的卓越 LIVER 支援, 加入聊天室, 我們在 Telegram 上有一個公開小組,提供協助設置外掛、討...。
WP Admin UI Customize 》, 儀表板, 顯示選項標籤, 輸出 - 元網站, 管理工具列 (Toolbar), 側邊選單 (Side menu), 元箱的管理, 登入畫面, 其他功能, , 這些自訂化都是可以實現的。, , ...。
Ultimate Post Kit Addons For Elementor – (Post Grid, Post Carousel, Post Slider, Category List, Post Tabs, Timeline, Post Ticker and Tag Cloud) 》Ultimate Post Kit Elementor 外掛程式是首個允許您全新且清新地設計部落格網站的外掛程式。這是博客作者、行銷人員和文章類型網站擁有者的最佳工具。, Ultim...。
Reading Time WP 》WP Reading Time 讓你輕鬆地在 WordPress 文章中加入預估閱讀時間。啟用這個外掛會自動在你的文章內容的開始加入閱讀時間。你可以在「閱讀時間」設定中取消這...。