Plugin info

Total downloads: 413,310
Active installs: 50,000
Total reviews: 92
Average rating: 4.5
Support threads opened: 1
Support threads resolved: 1 (100%)
Available in: 1 language(s)
Contributors: 1
Last updated: 12/3/2025 (28 days ago)
Added to WordPress: 10/15/2016 (9 years old)
Minimum WordPress version: 4.5
Tested up to WordPress version: 6.9
Minimum PHP version: 7.0

Maintenance & Compatibility

Maintenance score

Actively maintained • Last updated 28 days ago • Support resolved 100% • 92 reviews

84/100

Is Export media with selected content (by DKZR) abandoned?

Likely maintained (last update 28 days ago).

Compatibility

Requires WordPress: 4.5
Tested up to: 6.9
Requires PHP: 7.0

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

DeMomentSomTres WordPress Export Posts With Images
Rating 4.7/5 (45 reviews)Active installs 10,000
WP Attachment Export
Rating 4.6/5 (19 reviews)Active installs 700
XML-ify WordPress Multiple Posts
Rating 0.0/5 (0 reviews)Active installs 10
File Upload Types by WPForms
Rating 4.1/5 (19 reviews)Active installs 30,000
Lightbox with PhotoSwipe
Rating 4.9/5 (111 reviews)Active installs 20,000
File Away
Rating 4.9/5 (120 reviews)Active installs 9,000

Description

When selecting one post type in the WordPress export screen, by default the linked media (attachments) are not included.

This plugin adds an “Export media with selected content” option. When checked, the plugin tries to find featured images and included media in the post_content, adding them to the export file.

Installation

  1. Upload the plugin files to the /wp-content/plugins/export-media-with-content directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress

Frequently Asked Questions

Images seem to be missing in the export file

This plugin hooks into the WordPress export routine and tries to find images related to the post (page, etc.). It does so by looking for “attached” (uploaded to) media and it searches the body of the post (the post_content) for image files.

It’s possible that themes or plugins use different ways of referencing media to your post. This plugin will not find those.

The images are imported into the new site but eg. my galleries are broken

In eg. the Gutenberg gallery block, when you select an image size (for the gallery) the images with that size are ‘hard-coded’ in the html.

The WordPress import routine downloads the original image of the ‘export site’ and re-creates the configured image sizes. When your configured image sizes differ, you might end up with broken galleries.

So make sure both sites have the same image sizes configured. See the Media settings in both sites and check if themes or plugins use add_image_size() reference.

Can I (have somebody) extend this plugin?

Yes! The plugin features two filter hooks:
* export_query
* export_query_media_ids

Please browse the code to see what they do, I guess export_query_media_ids is easiest to use as it requires you to just add more attachment IDs to an array.

Review feed

lukechinworth
4/11/2022

Works perfectly

This plugin is a must for content migration. This should be the default behavior in WP.
preeve
5/31/2022

Massive time saver

Massive time saver, no need for premium plugins. Thanks.
Hoang Nam
12/17/2022

Awesome, Useful Plugin.

Awesome, Useful Plugin.
philhoyt
2/21/2023

Should be in core

happy to have this plugin, this functionality should be in core.

Screenshots

  1. "Export media with selected content" checkbox option now available in the Export screen.

    "Export media with selected content" checkbox option now available in the Export screen.

Changelog

2.1.3

  • prevent sql error when ID turns out to be NULL (props donnyoexman)

2.1.2

  • Stupid debug error fix

2.1.1

  • Added php 7.0 requirement to plugin header
  • Replaced short array notation with full notation so plugin could work on lower php versions (untested)

2.1

  • Performance: split queries & prepare attachments_map (props Albitos)
  • Feature: support for [playlist] shortcode
  • Feature: support for Gutenberg Audio and Video blocks
  • Tested with WordPress 5.6.2

2.0

  • Feature: support for Gutenberg notation of images and gallery
  • Feature: added export_query_media_ids filter
  • Tested with WordPress 5.2.3

1.1

  • Tested with WordPress 5
  • Includes “Uploaded to” media

1.0

  • Bugfix when only posts from 1 category must be selected
  • Feature: introduced export_query filter to allow for hooking into this plugin

0.9.1

  • Sanitize input

0.9

  • Initial release