A client asks for the details of twelve photos, not of the whole Media Library. Select those attachments under Media → Library and use the Export action that Import Export by RockStarLab adds there. The export wizard opens with those attachment IDs already selected; choose your columns, select CSV and download the file.
Both the grid and the list view work. Use it for a small image inventory, an alt text review of a group of files, or a few files to move to another site, without exporting everything and deleting rows afterwards.
The CSV contains attachment data and file URLs, not a folder of image binaries. Include File URL if another site will download the originals. If your goal is a full inventory, use the complete Media Library export guide instead.
Before you begin
Install and activate Import Export by RockStarLab on the source site and sign in as an administrator. Basic media export, including an explicit selection of attachment IDs, is supported by the current free plugin. PRO is needed for premium operations such as field transformation functions; it is not necessary for the plain selected-media CSV shown here.
Check that the items already exist in the Media Library. Files uploaded only through SFTP may still need registration as WordPress attachments. For recurring additions to an uploads folder, see folder synchronization with the Media Library.
1. Select the attachments in Media Library
Open Media → Library. In grid view, click Bulk select, then click the thumbnails you want. Selected items have checkmarks. The plugin’s Export button includes the selection count: for three items, it reads Export (3).
For example, a small catalogue handoff might contain a pennant photograph, a logo collection and a beanie image. Select those three thumbnails and leave the rest unchecked. Search and date/type controls can help locate them, but review the checkmarks before exporting.

Alternative: use list view and Bulk actions
Switch to List view if filenames and attachment relationships make selection easier. Tick the checkboxes beside the intended files, choose Export in Bulk actions, and click Apply. The same export wizard opens with those attachments selected.
Do not assume a selection survives changing pages or searching again. For a larger hand-picked collection, review the final IDs or use an explicit ID list through the agent workflow below. The header checkbox selects the visible list, so individual checkboxes are clearer for a small selection.

2. Choose the fields to include
Click Export in the grid, or Apply in list view. The shortcut passes the selected attachment IDs to the wizard and opens the field-selection step. Add the fields you need to Export File Structure. Use Add all for a full inventory, or keep only the columns needed by the recipient.
| Field | Why include it? |
|---|---|
| ID | Check that the exported rows match your original selection. |
| Title | Identify each attachment by its editable WordPress title. |
| File URL | Locate the original file or let a destination importer download it. |
| File Name and MIME Type | Identify the asset and its format. |
| Alt Text | Review image descriptions and find missing values. |
| Caption and Description | Carry the attachment’s editorial metadata. |
| Width, Height and File Size | Review dimensions and file weight. |
| Attached Post ID and title | Inspect the attachment’s recorded parent, when present. |

An attachment’s parent is not a complete list of every page using that image. A single image can appear in several posts, templates or product galleries. This export is an attachment inventory, not a site-wide usage audit.
Use File URL for a portable link. File Path describes the source server’s filesystem and will not be a downloadable address on another server. Add All may also include author email and internal paths; remove unnecessary columns before sharing an inventory outside your team.
3. Choose CSV and start the export
Click Next Step, select CSV and keep Include Header Row enabled. Comma is suitable for a standard CSV; select the delimiter expected by the software receiving it. Enter a recognizable filename without an extension, such as selected-catalogue-media.
Excel users can select XLSX when that better suits their review. Changing format does not change which attachments belong in the export. Keep the selection and fields consistent when comparing two formats.

Click Start Export and wait for the completion screen. Click Download Export File. You can also find the job later in Jobs Log.

4. Verify the CSV against your selection
Open the downloaded file in a spreadsheet application and count data rows, excluding the header. Three selected attachments should produce three rows. Compare the ID column with the intended source attachments; do not rely only on filenames, which can be repeated.
- Confirm there are no extra or missing attachment IDs.
- Open a File URL and check that it loads the intended asset.
- Compare its title, caption and alt text with the attachment editor.
- Check dimensions and MIME type where relevant. An empty alt-text cell may accurately reflect an empty source field.
- Keep the original export before making spreadsheet changes.
For reference, Caption is exported as post_excerpt, Description as post_content and Title as post_title when using the corresponding native fields. These technical column names help an importer map the data consistently.
Export the same selected media through an AI agent
Import Export by RockStarLab gives AI agents its exports, imports and Content Sync as abilities. Through the WordPress MCP Adapter, WordPress itself offers an agent only read-only abilities for site, user and environment information, so without the plugin the agent cannot do the steps above (to connect an agent, see Abilities API and AI-agent setup guide). With it, one request is enough:
Ask for a preview first:
On the connected WordPress site, prepare a media export for attachment IDs 1909, 1910 and 1911 only. Read the media export schema, count the selected records and preview ID, title, File URL, filename, alt text, caption, description, MIME type, width and height. Show the selection before creating the file. Do not modify any attachments.
Replace the example IDs with those from your own site. The agent can use rsl-ie/get-content-schema, rsl-ie/export-count and rsl-ie/export-preview. For the actual file, use:
Export the confirmed three attachment IDs to CSV with the same fields. Include a header row and name the file selected-catalogue-media. Poll the export job until it completes, resolve its download using file-get and give me the browser download link. Check that the final CSV contains exactly the requested IDs and report any missing or extra rows.
The explicit selection belongs in options.selected_ids. A concrete rsl-ie/export-start request is:
{
"export_type": "media",
"format": "csv",
"fields": ["ID", "post_title", "file_url", "file_name", "alt_text", "post_excerpt", "post_content", "post_mime_type", "width", "height"],
"options": {
"selected_ids": [1909, 1910, 1911],
"custom_export_file_name": "selected-catalogue-media"
},
"format_options": {"csv_include_header": true},
"request_id": "selected-media-catalogue-01"
}
Use the same request ID when retrying the same submission after a network interruption; use a new one for a deliberately new export. The agent polls rsl-ie/job-get and resolves the completed job with rsl-ie/file-get. Its browser_download_url is the clickable link for an administrator. The API download endpoint is intended for authenticated API clients.
Keep the selection scoped. If one ID is missing, investigate it rather than removing the ID filter and exporting the entire library. A fresh export is useful after changing source captions or alt text; an old CSV does not update automatically.
Import the selected files into another website
The export is ready for a separate import workflow. On the destination, choose Import → Media, upload the CSV, inspect the preview and map File URL plus the metadata you want to transfer. Follow the complete media CSV/Excel import tutorial for those screens and options.
The receiving server must be able to reach the source file URLs. A private local URL usually cannot be downloaded by a public production server. Keep the source files available until the transfer finishes. Source attachment IDs and parent-post IDs belong to the source database; do not assume the same numbers identify the same records on the destination.
Two different images can have the same filename. Review the destination inventory and the media transfer and duplicate-matching guide before choosing a match field. Selecting only three source images does not by itself prevent destination collisions.
If the goal is a product catalogue migration, exporting its images alone does not transfer product records or gallery assignments. Use the WooCommerce product export guide for the product data and relationships.
Selected, filtered or full media export?
| Approach | Choose it when… |
|---|---|
| Manual selection | You can name or recognize a specific small collection of attachments. |
| Filtered export | You need a repeatable condition, such as media type or upload date. See the export filter examples. |
| Full library export | You need every attachment for an inventory or a broader migration. |
Troubleshooting
| Problem | Check |
|---|---|
| Export is missing or disabled | Confirm the plugin is active, your account has administrator access, the Media Library Export action is enabled in plugin options and at least one file is selected. |
| Unexpected row count | Compare attachment IDs and any additional filters. Reopen the selection if you changed the search or page. |
| All CSV values appear in one column | Import the file using the delimiter chosen during export. |
| Alt text or captions are blank | Check the source attachment editor. Empty source fields export as empty values. |
| A recipient cannot open a file URL | Check source availability and access from the recipient’s network or server. |
Video walkthrough
Interface note: This video was recorded with an earlier plugin interface. Follow the current screenshots, menu labels and Free/PRO scope above.
Frequently asked questions
Can I export only selected files from the WordPress Media Library?
Yes. Select attachments in grid view and click Export, or select their rows in list view and choose Bulk actions → Export → Apply.
Does selected media export require PRO?
The current plugin supports basic selected-media export in Free. Premium operations such as field transformation functions require PRO.
Does the CSV contain the image files themselves?
The standard CSV contains attachment fields and file URLs. A receiving importer needs access to those URLs to download the originals.
Are captions and alt text included?
Yes, when you select those fields. Empty values remain empty if the source attachment has no caption or alt text.
Can an AI agent export an exact list of attachments?
Yes. Supply the attachment IDs in options.selected_ids, choose fields and explicitly enable the CSV header row. Verify the resulting IDs before using the file.
Will exporting selected images transfer product galleries too?
No. An attachment export does not transfer product records and their gallery assignments. Export the product data for that workflow.
How should I check for duplicates on another site?
Review the destination attachments and matching settings before importing. Identical filenames do not prove that files contain the same image.

Comments 0
Have a question or a tip to share? Leave it below.