Risk Free, Backed By Our 90-Day Money Back Guarantee
 - 
Read More
Lifetime Licenses Are Ending Soon, Get Yours Before They're Gone
 - 
Read More
Risk Free, Backed By Our 90-Day Money Back Guarantee
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
200,000+ Active Installs
1500+ 5 Star Reviews
Docs Menu

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

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., CSV, XML, Excel) or as a Bundle file that you can use for migrations. You can also use External Apps to send the data to Google Sheets.

Export WordPress to any CSV, XML, or Excel

  • Any theme or plugin
  • Images & galleries
  • Custom fields
  • Zapier integration
  • Woo, ACF, Meta Box, JetEngine

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, Excel or Google Sheets.

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

Unlimited Installs.
World-Class Support. Money Back Guarantee.

Packages
Standalone
Import
Pro Package
$199
.00
/yr
Save $494, 71% Discount
  • 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
$693 If Purchased Individually
Buy Now
90 Day Money Back Guarantee
Import + Export Pro Package
$299
.00
/yr
Save $1087, 78% Discount
  • 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
$1386 If Purchased Individually
Buy Now
90 Day Money Back Guarantee
WooCommerce Import Package
$169
.00
/yr
Save $29, 15% Discount
  • 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
$198 If Purchased Individually
Buy Now
90 Day Money Back Guarantee
Lifetime License
$1299
One-Time Payment
  • Import Pro + Export Pro
  • All Current Add-Ons
  • All Future Add-Ons
  • Lifetime Support
  • Lifetime Updates
  • No Renewal Fees
Buy Now
90 Day Money Back Guarantee
Import Standalone
$99
.00
/yr
  • 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
Buy Now
90 Day Money Back Guarantee
Import + Export Standalone
$169
.00
/yr
  • 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
Buy Now
90 Day Money Back Guarantee
Export Standalone
$99
.00
/yr
  • 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
Buy Now
90 Day Money Back Guarantee
Packages
Standalone
Import
Pro Package
$16.58
per month, billed annually
Save $494/yr, 71% Discount
  • 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
$693/yr If Purchased Individually
Buy Now
90 Day Money Back Guarantee
Import + Export Pro Package
$24.92
per month, billed annually
Save $1087/yr, 78% Discount
  • 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
$1386/yr If Purchased Individually
Buy Now
90 Day Money Back Guarantee
WooCommerce Import Package
$14.08
per month, billed annually
Save $29/yr, 15% Discount
  • 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
$198/yr If Purchased Individually
Buy Now
90 Day Money Back Guarantee
Lifetime License
$1399
One-Time Payment
  • Import Pro + Export Pro
  • All Current Add-Ons
  • All Future Add-Ons
  • Lifetime Support
  • Lifetime Updates
  • No Renewal Fees
Buy Now
90 Day Money Back Guarantee
Import Standalone
$8.25
per month, billed annually
  • 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
Buy Now
90 Day Money Back Guarantee
Import + Export Standalone
$14.08
per month, billed annually
  • 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
Buy Now
90 Day Money Back Guarantee
Export Standalone
$8.25
per month, billed annually
  • 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
Buy Now
90 Day Money Back Guarantee

Unlimited Installs.
World-Class Support. Money Back Guarantee.

Developer
Pro features to get your WordPress data moving
Normally $299/yr
$149
.00
/yr
Save $150
Import & Export Pro
  • Posts Types, Pages & Taxonomies
  • Custom Fields & Meta Support
  • WordPress Users Support
  • Gravity Forms Entries
  • Developer Tools
  • Pro Settings
  • See detailed list of features
    Buy Now
    90 Day Money Back Guarantee
    Professional
    Everything you need to import and export anything
    Normally $599/yr
    $299
    .00
    /yr
    Save $300
    All Features & Integrations
  • WooCommerce
  • Bulk Editing & Data Migration
  • Advanced Custom Fields
  • JetEngine
  • Meta Box
  • Manual Scheduling
  • See detailed list of features
    Buy Now
    90 Day Money Back Guarantee
    Unlimited Lifetime
    All features and integrations forever for unlimited sites
    Normally $1599
    $1299
    .00
    once
    Limited-Time Offer
    ONE-TIME PAYMENT 
  • Import Pro + Export Pro
  • All Current Features & Integrations
  • All Future Features & Integrations
  • Lifetime Updates
  • Lifetime Support
  • No Renewal Fees
  • See detailed list of features
    Buy Now
    90 Day Money Back Guarantee

    Risk Free with our Money-Back Guarantee

    We would love for you to try WP All Import. Our 90-day money-back guarantee means that if you decide our plugins don’t meet your needs, just let us know, and we’ll gladly give you a full refund, no questions asked.
    200,000+ Active Installs
    1500+ 5 Star Reviews
    Developer
    $149
    .00
    /yr
    Buy Now
    Professional
    $299
    .00
    /yr
    Buy Now
    Ultimate Lifetime
    $1299
    Buy Now
    Unlimited Lifetime Package Features
    included in only in the Ultimate Lifetime Package
    One-Time Payment. No Renewal.
    All Future Add-Ons
    Developer Package Features
    included in all packages
    Untilimited Site Activations
    World-Class Support
    Import & Export Custom Post Types, Pages & Taxonomies
    Import & Export Custom Fields & Meta
    Download Import File from URL & FTP
    Export to CSV, XLSX, and XML
    Import & Export Filters
    Import & Export WordPress Users
    Import & Export Gravity Forms Entries
    Delete Missing Records on Import
    Run PHP Functions on Imports & Exports
    Choose Which Data to Update
    WP_Query Exports
    Secure Client Mode for Exports
    Zapier Integration for Exports
    Professional Package Features
    everything the Developer package, plus:
    Import & Export WooCommerce Products
    Import & Export WooCommerce Product Galleries
    Import & Export WooCommerce Orders
    Import & Export WooCommerce Customers
    Import & Export WooCommerce Reviews & Coupons
    Sync WooCommerce Stock & Prices
    Import & Export ACF Fields
    Import & Export JetEngine Fields
    Import & Export Meta Box Fields
    Export to Google Merchant Center
    Migrate Data Between Sites
    Bulk Edit with Export, Edit, Import
    Manual Scheduling for Imports & Exports

    Have any questions? 

    These are some of the most frequent questions we get about how to get data imported to or exported from WordPress

    Can I use any file type to import my data?

    Absolutely. It doesn't matter how big your CSV file is or what your column names are. Just use our Drag and Drop interface to map incoming data elements to their target fields, and you'll be done in minutes.

    Can I import Excel or Google Sheets to WordPress?

    Yes. Importing any spreadsheet is straightforward. Need to import Google Sheets to WordPress? Just copy and paste its URL. Need to import into WordPress from Excel? Same thing!

    How does my WordPress import data need to be organized?

    Our plugin is extremely flexible, so you probably won't have to make any changes to your data. You can try your WordPress import right now, and if you have any issues, we'll be glad to help you out.

    What will my WordPress export file look like?

    Unlike other solutions, our plugin gives you complete control over your WordPress export, including how it's formatted. You can modify fields, merge them together, and even create completely custom fields using embedded PHP.

    How do I export WordPress data to CSV?

    To export data to a CSV file, you don't have to do anything at all, as CSV is our default export format. If you want to export to other file formats, just change the export type in the Drag & Drop screen.

    Can I export WooCommerce products?

    Yes. Our software is completely integrated with WooCommerce. It provides full support to export WooCommerce customers, orders, products, variations, attributes, subscriptions, and reviews.
    cross