Export media with selected content

Omschrijving

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.

Schermafdrukken

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

Installatie

  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

FAQ

It does not seem to work?

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.

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.

Beoordelingen

24 maart 2021
It works perfectly as I wanted. All images imported from posts successfully! Thanks
17 maart 2021
The blog articles I had imported kept their images linked to the original server. With this plugin, first installed on the original site to create the export file, it worked fine, even though it says it isn't tested with my latest version of WordPress. Using the WordPress import tool on the new site, the images uploaded to the server whereas before they had not. I wonder about those who say this doesn't work; perhaps they had not installed it first for their export file.
10 maart 2021
Went without hitch. I was also surprised to see it easily imported media from ACF fields!
Lees alle 49 beoordelingen

Bijdragers & ontwikkelaars

“Export media with selected content” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

Changelog

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