Find Posts Using Attachment


Allows to find all posts where a particular attachment (image, video, etc.) is used.

Adds a “Used In” column to the list view in Media Library, as well as to the attachment details modal.

Finds posts that use the image (including any of its intermediate sizes) in post content, or as a featured image. Works with custom post types too.

Inspired by a WP Tavern post on image attachments.


  • “Used In” column in Media Library
  • “Used In” column in the attachment details modal.


  1. Upload find-posts-using-attachment folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.


Installation Instructions
  1. Upload find-posts-using-attachment folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.


Excellent plugin, so useful!

Simple, tells you which pages or posts your image or other attachment is used, I used it to be able to delete images that were not used but I couldn’t be sure they were unused without this plugin. Brilliant.

Still Works. Very helpful!

I have a large client site that needed all references to a competitors product removed from their site. This included images that used the competitors name in the name of the image. I thought this would take days to do using the usual search methods! With this plugin I was done in about 30 minutes!! THANK YOU!

Note: Being 3 years old looks suspicious. Please consider updating your plugin so others know it still works.

Seems to work good

Installed just today and tested it and it seems to work good, letting me know what page the file is being used on, and it lists the pages/posts if its on more then 1.

I use enfold theme and I also had the picture in a full width slider and it never showed / knew that, so its not perfect but still a nice tool =-]

Make sure you view the media in list mode not thumbnail mode.


This plugin is awesome and saved my life…
But I searched along time to find it! It is a nice work to add more tags, keywords and descriptions to plugin page..



Great solution to a common problem

This is a great solution to a common problem. In my case the website developer uploaded a new image file in each location it was used, rather than simply using the same image file already in the media library.

Like others, I like to (try at least) to keep things clean and easier to review or maintain, by removing un-used and obsolete images from the database (as might be the case if an image is updated, a promotion ends, etc.)

This plugin does great to locate the posts and pages in which a specific image is used – or shows “unused” if it is not used in any post.

I like that the list of locations in the Media Library is hyperlinked, taking me directly to the page to be edited.

One limitation however is that use of the image in other places such as in a widget is not identified, which might be a minor issue as most people probably don’t have so many widgets that they can’t be manually reviewed. A plugin like Better Search Replace will identify how MANY times a string (like an image URL) appears in the database and in which table(s), but there is no way to know exactly in which element or instance.

I’m not sure how that sort of thing could be implemented (e.g. – link to take me to the editor for that widget / element). Otherwise as of this date the Find Posts Using Attachment hasn’t been updated since introduced a year ago. It would be worthy of a code review and certification to work in the current WP, to refresh it in the extensions directory.

Read all 9 reviews

Contributors & Developers

“Find Posts Using Attachment” is open source software. The following people have contributed to this plugin.


“Find Posts Using Attachment” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Find Posts Using Attachment” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Initial release