跳到内容

Post Attachment Sizes

v1.0.0

TyB · 2017年4月10日 上架

Post Attachment Size calculates the total size of all attachments attached to a post and provides a sortable column in the wp-admin post list based on …

正在使用
10 以下
评分
暂无
累计下载
1,121
最近更新
2017年4月11日
需要 WordPress 3.2+已测试到 4.7.40

贡献者

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

  1. Simply install the plugin and activate using the directions above. The sortable wp-admin column will be added automatically.
  2. 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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums