Attachments for WordPress
- Category rank
- #23 in Post
- Listing audit
- 45/100
Attachments is a WordPress Plugin Directory app by Jon Christopher. With a rating of 4.8★ from 53 reviews, it currently ranks #23 in the Post category.
Attachments is the #23 ranked Post app on WordPress, with a 4.8 average rating from 53 reviews, as of Sep 11, 2026.
AppRanks verdict
Generated from marketplace data as of Sep 11, 2026
Attachments ranks #23 of 585 in Post on WordPress. It holds a 4.8★ average from 53 reviews on WordPress.
Pros
- +4.8★ average across 53 reviews
Cons
- −Only 53 reviews — the average can still move with a few new ratings
How Attachments works
Show full descriptionShow less
Extensive usage instructions are available on GitHub
Attachments allows you to simply append any number of items from your WordPress Media Library to Posts, Pages, and Custom Post Types.
Associate Media items with posts The idea behind Attachments is to give developers the ability to directly associate Media items with any post. This is accomplished by adding a meta box to post edit screens as determined by the developer. Once Media items have been associated with a post, you’re able to retrieve those Attachments and include them directly within your template files using any specific markup you wish.
Integrate Attachments within your theme with fine grained control Attachments does not automatically integrate itself with your theme. Since the idea behind Attachments is to allow integration of Media within posts using developer-crafted, unique markup, it’s up to you to integrate with your theme. The most basic integration includes editing the appropriate template file and adding your call(s) to Attachments. For example, if you have set up Attachments to be used with your Posts entries, edit single.php to include the following within The Loop:
<?php $attachments = new Attachments( 'attachments' ); /* pass the instance name */ ?> <?php if( $attachments->exist() ) : ?> <h3>Attachments</h3> <p>Total Attachments: <?php echo $attachments->total(); ?></p> <ul> <?php while( $attachments->get() ) : ?> <li> ID: <?php echo $attachments->id(); ?><br /> Type: <?php echo $attachments->type(); ?><br /> Subtype: <?php echo $attachments->subtype(); ?><br /> URL: <?php echo $attachments->url(); ?><br /> Image: <?php echo $attachments->image( 'thumbnail' ); ?><br /> Source: <?php echo $attachments->src( 'full' ); ?><br /> Size: <?php echo $attachments->filesize(); ?><br /> Title Field: <?php echo $attachments->field( 'title' ); ?><br /> Caption Field: <?php echo $attachments->field( 'caption' ); ?> </li> <?php endwhile; ?> </ul> <?php endif; ?>