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
- 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 (ifsingle = truethen use the attachment ID) [OPTIONAL]single= Set totrueif you only want the size of ONE attachment (MUST set thepost_idto the attachment ID if this is true)return= Defaultboth: returns both the raw byte size of the file AND the formatted value.- Use
byteto return JUST the byte value. - Use
formattedto return JUST the formatted file size
- Use
FAQ
- Installation Instructions
-
- Upload the
post-attachment-sizesdirectory to your/wp-content/plugins/directory. - Activate the plugin.
- Upload the
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.
ContributorsTranslate “Post Attachment Sizes” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0
- Initial Release