[WordPress] 外掛分享: Add Custom Fields to Media

首頁外掛目錄 › Add Custom Fields to Media
WordPress 外掛 Add Custom Fields to Media 的封面圖片
90+
安裝啟用
★★★★★
5/5 分(2 則評價)
5 天前
最後更新
問題解決
WordPress 5.2+ PHP 7.2+ v2.0.4 上架:2012-07-18

內容簡介

Add Custom Fields to Media 外掛允許使用者在媒體上傳器中新增自訂欄位,並可在文章或範本檔案中存取這些欄位,適合用來添加版權資訊、圖片元資料等。

【主要功能】
• 新增自訂欄位至媒體上傳器
• 在文章中使用短碼顯示自訂欄位
• 支援 PHP 模板存取自訂欄位

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Add Custom Fields to Media」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Allows users to add custom fields to the media uploader and access those fields in posts or template files. Great for adding copyrights, image meta etc.
To display the custom fields in your theme, use the following shortcode in post/pages:

[acfm id="123" field="my_custom_field"]

Where id is the ID of the media item and field is the name of the custom field.
For PHP templates, use the following code:

echo get_post_meta( 123, 'my_custom_field', true );

To use this plugin effectively, download and intall it on your WordPress blog. Next, access “Media Custom Fields” page in your admin Settings and create a new custom field for your media uploads.

Unique ID – The unique variable name for this item. It may not contain special characaters or spaces
Field Title – The name you want to appear in the media uploader
Field Help – A descriptive message you want to appear in the media uploader

Once you’ve added a custom field, you can access it via the Media Library or during the Add Media process of uploading a new item.
This plugin was originally developed by Christopher Ross. The plugin has been adopted and refactored by George Pattichis who will continue development and maintenance.
Changelog

延伸相關外掛

文章
Filter
Apply Filters
Mastodon