How To Display Post Attachment Count In WordPress Posts Screen

Some people run WordPress websites where they post articles with multiple attachments and here’s something useful for them. Here’s snippet which allow yous to display post attachment count in WordPress posts screen, so you can easily see the number of media attached to a post.

Just add following snippet to your current theme’s functions.php file:

This snippet only works for posts, but you can use it for pages by adding following snippet:

Thanks to for the snippet.