Lifetime Licenses Are Ending Soon, Get Yours Before They're Gone
 - 
Read More
Lifetime Licenses Are Ending Soon, Get Yours Before They're Gone
 - 
Read More
Pricing

You may have seen some references on our site to annual licensing or renewals.

All plugins currently come with a lifetime license, no matter what the site says.

We’re currently running tests before we make the switch to annual pricing. Check the Discounts tab to purchase our other plugins and get a lifetime license before they’re gone.

I Understand I Have a Lifetime License
Now is your last chance to buy a lifetime license before we switch to annual pricing. Existing licenses will be unaffected.
Read More

WordPress Export Posts with Images

To export WordPress posts with images, go to All Export › New Export and select Posts from the dropdown list. Configure your export columns with the Drag & Drop interface, then run the export and download the exported posts and their images.

Table of Contents

Advanced Topics

Step 1: Create a New Export for WordPress Posts

Navigate to All Export › New Export and select Posts from the dropdown list.

Export WordPress Posts with Images New Export

When needed, Add Filtering Options to control which WordPress posts will be exported.

Click on Customize Export File to continue.

Step 2: Customize the Export Layout to Include Image Data

The Drag & Drop interface appears, where you build the export template.

To include data in an export, drag fields from the Available Data section on the right and drop them into the column selection area on the left:

Export WordPress Posts with Images Drag and Drop Interface

To remove an export column, drag it out of the column selection area and drop it anywhere else on the interface.

To learn about the different sections available when exporting posts, you can review Customize the WordPress Post Export File.

In this document, we will focus on the Media section, which contains the image and attachment fields associated with WordPress posts. To include images in your export, you must drag fields from this section into the column selection area.

The remainder of this section provides detailed descriptions of the relevant fields.

Media › Images

The data associated with images on your WordPress posts will appear here. The following fields are available:

  • Image URL: URL to the image.
  • Image Filename: Filename of the full-size image.
  • Image Path: Path or location (on the server) to the image.
  • Image ID: The attachment ID of the image.
  • Image Title: The image title.
  • Image Caption: The image caption.
  • Image Description: The image description.
  • Image Alt Text: The image alternative text.
  • Image Featured: The URL of the featured image.

Multiple values are separated by a pipe "|" character.

Export WordPress Posts with Images Media Image Data

Media › Attachments

The attachments uploaded to your WordPress site generate the same types of fields, as shown below:

  • Attachment URL: URL to the attachment.
  • Attachment Filename: Filename of the attachment.
  • Attachment Path: Path or location (on the server) to the attachment.
  • Attachment ID: The attachment ID of the attachment.
  • Attachment Title: Attachment's title.
  • Attachment Caption: Attachment's caption.
  • Attachment Description: Attachment's description.
  • Attachment Alt Text: Attachment's alternative text.

If there are multiple attachments per post, the different values are again separated by a pipe "|" character.

Export WordPress Posts with Images Media Attachments Data

Media from Custom Fields

If your media is stored in a different way, i.e., embedded in a serialized array inside a custom field, you can still export it. You just have to write custom PHP code as explained in the guide: How to Pass Exported WordPress Data Through PHP Functions.

Basically, you must apply custom code to that custom field. Your code should process the data entirely, locate the specific data that you wish to extract, and then return it.

While we may be able to provide examples in some scenarios, we don't help with custom coding. For that type of assistance, you can reach out to one of our recommended developers.

Step 3: Configure the Export Settings

After setting up the export template, click on the Continue button at the bottom of the page (not shown). Next, you'll see the Export Settings screen:

Export WordPress Posts with Images Export Settings

This interface lets you modify the default export settings. You can add Scheduling Options or change Advanced Options. Once you're ready to run the WordPress posts export, click on Confirm & Run Export.

Step 4: Download the Exported Posts with Images

You will see the following screen once the export completes:

Export WordPress Posts with Images Export Complete

On this screen, you can download the exported file in the selected format (i.e., CSVXMLExcel) or as a Bundle file that you can use for migrations.

Export WordPress Posts with Images — Advanced Topics

Schedule your WordPress Posts Export

You can schedule a WordPress posts export using either of our integrated Scheduling Options:

Export WordPress Posts with Images Manual Cron Jobs

Export WordPress Posts with Images to an External App Using Zapier

Our plugin lets you send your exported data to any third-party app available in Zapier. This will let you integrate your post exports with whatever tool you need, such as Gmail or Google Drive.

To learn more, visit: How to Send Exported WordPress Data to Zapier.

Export WordPress Posts with Images Zapier

Modify Post Export Data Programmatically

If you need to modify the post data or content that's being exported, you can use custom code. For example, here is how to change a URL from https://example-debug.com/ to https://example.com/.

WordPress PHP Export Field

This is the function used:

 
function my_replace($value){
	return str_replace("https://example-debug.com/","https://example.com/",$value);
}

Learn more about this in the guide: How to Pass Exported WordPress Data Through PHP Functions.

Export WordPress Posts with Images — Frequently Asked Questions

How Do I Export Posts from WordPress?

  1. Create a new export and choose Posts.
  2. Select the export fields that you want to include in the export.
  3. Run the export.
  4. Download the exported WordPress Posts.
  5. Review the contents of the export file.

To learn more, see How to Export WordPress Posts.

Does a WordPress Post Export Include Images?

You can use the procedures described in this document to include images with your post export or any other post type that has images or attachments. You can even export media stored in custom fields.

For a broader description of our export capabilities, see Export WordPress to CSV, XML, or Excel.

How Do I Export All Images from WordPress?

You cannot export the entire Media Library out of the box. You have to export the post type or custom post type and then include its associated images in the export, exactly as we've demonstrated in this document.

However, there is a workaround using a WP_Query export (see documentation) to generate an export file with all the media or attachments that exist on your site. This is the query:

'post_type' => 'attachment', 
'post_status' => 'inherit'

How Do I Export All My WordPress Posts with Images?

To export all your posts with images, just export your posts exactly as described in this guide, including image fields, but without applying any filters. This is the beauty of WP All Export. It handles image fields the same way it handles most fields.

How Do I Export a Featured Image with a WordPress Post?

To export a featured image with a post, just include the Image Featured field from the Available Data > Media > Images section in your export. There are no other required actions.

How Do I Import WordPress Posts with Images?

To import WordPress posts with images, you need to map the incoming image data elements to their corresponding image fields. However, the way that you do this can vary significantly depending on where the images are stored.

For more information, see How to Import WordPress Posts with Images.

Export WordPress Posts with Images — Related Docs

Create or modify filters added to the export.

Learn more about exporting WordPress Images and attachments.

Explains in simple steps how to import WordPress posts.

Need to move a WordPress blog from one website to another? This document teaches you how.

Export WordPress Posts with Images — Related Videos

The best import export plugin for WordPress & WooCommerce.

Complete, granular control of your data with an easy to use drag & drop interface.
  • 90 Day Money Back Guarantee
  • Unlimited Installs
  • Lifetime Licence
  • Fast, World-Class Support
Get Started
90 Day Money Back Guarantee

Lifetime support. Lifetime updates. Pay once.

Packages
Standalone
Import
Pro Package
$299
one-time
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
Import + Export Pro Package
$399
one-time
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
WooCommerce Import Package
$199
one-time
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
Import Standalone
$99
one-time
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
Import + Export Standalone
$169
one-time
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
Export Standalone
$99
one-time
  • Import Pro
Import Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
  • Export Pro
Export Add-Ons
  • Woo
  • ACF
  • Meta Box
  • JetEngine
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee

Lifetime support. Lifetime updates. Pay once.

Import
Pro Package
$199
one-time
  • Import Pro
Import Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
  • Types
  • Export Pro
Export Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
Import + Export Pro Package
$299
one-time
  • Import Pro
Import Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
  • Types
  • Export Pro
Export Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
Export
Pro Package
$199
one-time
  • Import Pro
Import Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
  • Types
  • Export Pro
Export Add-Ons
  • WooCo
  • ACF
  • Gravity Forms
  • Users
Add to Cart
90 Day Money Back Guarantee
cross