Title: Post Attachment Sizes
Author: TyB
Published: <strong>April 10, 2017</strong>
Last modified: April 10, 2017

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/post-attachment-sizes/assets/icon-128x128.jpg?rev=1635554)

# Post Attachment Sizes

 By [TyB](https://profiles.wordpress.org/tyb/)

[Download](https://downloads.wordpress.org/plugin/post-attachment-sizes.zip)

 * [Details](https://wordpress.org/plugins/post-attachment-sizes/#description)
 * [Reviews](https://wordpress.org/plugins/post-attachment-sizes/#reviews)
 * [Development](https://wordpress.org/plugins/post-attachment-sizes/#developers)

 [Support](https://wordpress.org/support/plugin/post-attachment-sizes/)

## Description

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:
 3.  * `[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

## FAQ

  Installation Instructions

 1. Upload the `post-attachment-sizes` directory to your `/wp-content/plugins/` directory.
 2. Activate the plugin.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Post Attachment Sizes” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ TyB ](https://profiles.wordpress.org/tyb/)

[Translate “Post Attachment Sizes” into your language.](https://translate.wordpress.org/projects/wp-plugins/post-attachment-sizes)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/post-attachment-sizes/),
check out the [SVN repository](https://plugins.svn.wordpress.org/post-attachment-sizes/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/post-attachment-sizes/)
by [RSS](https://plugins.trac.wordpress.org/log/post-attachment-sizes/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0

 * Initial Release

## Meta

 *  Version **1.0.0**
 *  Last updated **9 years ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 3.2 or higher **
 *  Tested up to **4.7.33**
 * Tags
 * [attachments](https://wordpress.org/plugins/tags/attachments/)[file size](https://wordpress.org/plugins/tags/file-size/)
   [images](https://wordpress.org/plugins/tags/images/)[post attachments](https://wordpress.org/plugins/tags/post-attachments/)
   [post images](https://wordpress.org/plugins/tags/post-images/)
 *  [Advanced View](https://wordpress.org/plugins/post-attachment-sizes/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/post-attachment-sizes/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/post-attachment-sizes/reviews/)

## Contributors

 *   [ TyB ](https://profiles.wordpress.org/tyb/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/post-attachment-sizes/)