This WordPress plugin searches the provided images in the wp_posts table and generates a CSV file with the URLs of all the posts that include them.
- Clone this repository to your WordPress plugins directory or in the mu-plugins folder.
git clone https://github.com/bernattorras/find-images-cli.git
- Activate the plugin through the WordPress admin interface if it wasn't directly cloned into the mu-plugins folder.
The plugin only provides one command to specify the path of the file that has all the images.
- wp find-images <txt_path>
- Specify the path to the .txt file that has all the image names
- wp find-images images.txt
- Search for the images provided in the images.txt file (which is in the same current folder).
The command generates a CSV file named found_images.csv
in the current folder that contains a list of all the found posts posts that include these images.