{"id":51553,"date":"2016-10-15T16:10:58","date_gmt":"2016-10-15T16:10:58","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/export-media-with-selected-content\/"},"modified":"2025-12-03T08:47:54","modified_gmt":"2025-12-03T08:47:54","slug":"export-media-with-selected-content","status":"publish","type":"plugin","link":"https:\/\/mlt.wordpress.org\/plugins\/export-media-with-selected-content\/","author":9423671,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.1.4","stable_tag":"2.1.4","tested":"6.9.4","requires":"4.5","requires_php":"7.0","requires_plugins":null,"header_name":"Export media with selected content (by DKZR)","header_author":"Joost de Keijzer","header_description":"","assets_banners_color":"","last_updated":"2025-12-03 08:47:54","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_donations&business=j@dkzr.nl&item_name=Export+media+with+selected+content+WordPress+plugin&item_number=Joost+de+Keijzer&currency_code=EUR&amount=10","header_plugin_uri":"https:\/\/dkzr.nl\/","header_author_uri":"https:\/\/dkzr.nl\/","rating":4.5,"author_block_rating":0,"active_installs":40000,"downloads":427131,"num_ratings":93,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.9.1":{"tag":"0.9.1","author":"joostdekeijzer","date":"2016-10-15 16:56:27"},"1.0":{"tag":"1.0","author":"joostdekeijzer","date":"2016-11-05 12:26:54"},"1.1":{"tag":"1.1","author":"joostdekeijzer","date":"2018-10-31 13:37:41"},"2.0":{"tag":"2.0","author":"joostdekeijzer","date":"2021-02-04 10:12:45"},"2.1":{"tag":"2.1","author":"joostdekeijzer","date":"2021-02-26 16:33:08"},"2.1.1":{"tag":"2.1.1","author":"joostdekeijzer","date":"2021-02-26 23:00:51"},"2.1.2":{"tag":"2.1.2","author":"joostdekeijzer","date":"2021-02-27 06:40:17"},"2.1.3":{"tag":"2.1.3","author":"joostdekeijzer","date":"2021-08-06 11:54:53"},"2.1.4":{"tag":"2.1.4","author":"joostdekeijzer","date":"2025-12-03 08:47:54"}},"upgrade_notice":[],"ratings":{"1":10,"2":0,"3":3,"4":2,"5":78},"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":3306467,"resolution":false,"location":"assets","locale":false}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.9.1","1.0","1.1","2.0","2.1","2.1.1","2.1.2","2.1.3","2.1.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1515518,"resolution":"1","location":"assets","locale":""}},"screenshots":{"1":"\"Export media with selected content\" checkbox option now available in the Export screen."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1346,1859],"plugin_category":[50,59],"plugin_contributors":[83861],"plugin_business_model":[],"class_list":["post-51553","plugin","type-plugin","status-publish","hentry","plugin_tags-attachments","plugin_tags-export","plugin_category-media","plugin_category-utilities-and-tools","plugin_contributors-joostdekeijzer","plugin_committers-joostdekeijzer"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/export-media-with-selected-content\/assets\/icon.svg?rev=3306467","icon":"https:\/\/ps.w.org\/export-media-with-selected-content\/assets\/icon.svg?rev=3306467","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/export-media-with-selected-content\/assets\/screenshot-1.png?rev=1515518","caption":"\"Export media with selected content\" checkbox option now available in the Export screen."}],"raw_content":"<!--section=description-->\n<p>When selecting one post type in the WordPress export screen, by default the linked media (attachments) are not included.<\/p>\n\n<p>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.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/export-media-with-content<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='images%20seem%20to%20be%20missing%20in%20the%20export%20file'><h3>Images seem to be missing in the export file<\/h3><\/dt>\n<dd><p>This plugin hooks into the WordPress export routine and <em>tries<\/em> 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.<\/p>\n\n<p>It's possible that themes or plugins use different ways of referencing media to your post. This plugin will not find those.<\/p><\/dd>\n<dt id='the%20images%20are%20imported%20into%20the%20new%20site%20but%20eg.%20my%20galleries%20are%20broken'><h3>The images are imported into the new site but eg. my galleries are broken<\/h3><\/dt>\n<dd><p>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.<\/p>\n\n<p>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.<\/p>\n\n<p>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 <code>add_image_size()<\/code> <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/add_image_size\/\">reference<\/a>.<\/p><\/dd>\n<dt id='can%20i%20%28have%20somebody%29%20extend%20this%20plugin%3F'><h3>Can I (have somebody) extend this plugin?<\/h3><\/dt>\n<dd><p>Yes! The plugin features two filter hooks:\n* <code>export_query<\/code>\n* <code>export_query_media_ids<\/code><\/p>\n\n<p>Please browse the code to see what they do, I guess <code>export_query_media_ids<\/code> is easiest to use as it requires you to just add more attachment IDs to an array.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.1.3<\/h4>\n\n<ul>\n<li>prevent sql error when ID turns out to be NULL (props donnyoexman)<\/li>\n<\/ul>\n\n<h4>2.1.2<\/h4>\n\n<ul>\n<li>Stupid debug error fix<\/li>\n<\/ul>\n\n<h4>2.1.1<\/h4>\n\n<ul>\n<li>Added php 7.0 requirement to plugin header<\/li>\n<li>Replaced short array notation with full notation so plugin could work on lower php versions (untested)<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>Performance: split queries &amp; prepare attachments_map (props Albitos)<\/li>\n<li>Feature: support for [playlist] shortcode<\/li>\n<li>Feature: support for Gutenberg Audio and Video blocks<\/li>\n<li>Tested with WordPress 5.6.2<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>Feature: support for Gutenberg notation of images and gallery<\/li>\n<li>Feature: added <code>export_query_media_ids<\/code> filter<\/li>\n<li>Tested with WordPress 5.2.3<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Tested with WordPress 5<\/li>\n<li>Includes \"Uploaded to\" media<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Bugfix when only posts from 1 category must be selected<\/li>\n<li>Feature: introduced <code>export_query<\/code> filter to allow for hooking into this plugin<\/li>\n<\/ul>\n\n<h4>0.9.1<\/h4>\n\n<ul>\n<li>Sanitize input<\/li>\n<\/ul>\n\n<h4>0.9<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Include all relevant attachments in your export.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mlt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/51553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mlt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mlt.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mlt.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=51553"}],"author":[{"embeddable":true,"href":"https:\/\/mlt.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/joostdekeijzer"}],"wp:attachment":[{"href":"https:\/\/mlt.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=51553"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mlt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=51553"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mlt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=51553"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mlt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=51553"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mlt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=51553"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mlt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=51553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}