前言介紹
- 這款 WordPress 外掛「Post Attachment Sizes」是 2017-04-09 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2017-04-10,距離現在已有 3243 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.2 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
tyb |
外掛標籤
images | file size | attachments | post images | post attachments |
內容簡介
這個外掛在 wp-admin 文章編輯畫面提供了一個額外可排序的欄位,讓你可以依附加在文章中所有附件的檔案大小來排序文章。如果你的文章有 10 張圖片附件,顯示的數字將會是這 10 張圖片所有檔案大小的總和。這對於有大量圖片庫的 WordPress 網站非常有用。
使用方法
安裝外掛後使用上方的指示啟用。可排序的 wp-admin 欄位將會自動加入。
你也可以使用提供的 shortcode 回傳檔案大小。使用方法如下:
[pas_display_post_size post_id=false single=false return="both"]
post_id = 文章 ID(如果 single = true 時,則使用附件 ID)[非必要項目]
single = 如果你只需要單一附件的大小,就設為 true (如果是真的,一定要設定 post_id 為附件 ID)
return = 預設為 both:回傳原始的檔案大小(單位為位元組)和格式化的值。
使用 byte 回傳位元組值。
使用 formatted 回傳格式化的檔案大小
原文外掛簡介
This plugin provides an additional sortable column in the wp-admin Posts screen that allows you to sort the posts by total size of all attachments. If your post has 10 images attached, the number shown will be the total file size of all 10 images added together. This is useful for WordPress websites with a lot of photo galleries.
Usage
Simply install the plugin and activate using the directions above. The sortable wp-admin column will be added automatically.
You can also use the shortcode provided to return the file sizes. Usage is as follows:
[pas_display_post_size post_id=false single=false return="both"]
post_id = The post ID (if single = true then use the attachment ID) [OPTIONAL]
single = Set to true if you only want the size of ONE attachment (MUST set the post_id to the attachment ID if this is true)
return = Default both: returns both the raw byte size of the file AND the formatted value.
Use byte to return JUST the byte value.
Use formatted to return JUST the formatted file size
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Post Attachment Sizes」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
LMWD Tree Zip 》此外掛可讀取自訂文章類型 (CPT) > 文章 > 附件的邏輯結構,並以幾個點擊生成相似的文件樹狀結構,例如:, , CTP 名稱 > 文章名稱 > 附加檔案, CTP 目錄 > 文...。
Eddard's Post Attachments 》這個外掛功能相對簡單,但能讓你在編輯文章或頁面時更輕鬆地存取文章附加的圖片。它在文章編輯器中提供了一個獨立的按鈕,點擊後會彈出另一個視窗以供選擇圖...。
