PageHaul
How-to3 min read

How to export your WordPress site, including your photos

Export WordPress posts and pages from Tools, then Export, and get your photos too. What the XML file includes, what it doesn't, and where it can go next.

Updated First published

On this page

WordPress has a built-in export. Go to Tools → Export, choose what to include and click Download Export File. You get one file in WordPress's own format (a WordPress XML file, sometimes called WXR) with your posts, pages and comments. Your photos aren't in it, so you download those separately.

Many agent, team and brokerage sites run on WordPress, often with an IDX plugin for listings. The export brings your bio, blog, neighborhood pages and buyer and seller guides. Listings aren't in it: they come from your MLS feed and get reconnected on the new site.

Menu names are as of November 2026.

How do I export my WordPress site?#

  1. In your WordPress dashboard, go to Tools → Export.
  2. Choose All content, or pick Posts or Pages to filter by category, author, date range or status.
  3. Click Download Export File and save the .xml file.

WordPress's export guide says the file contains "your posts, pages, custom post types, comments, custom fields, categories, tags, custom taxonomies, and users." With All content, it also includes navigation menus.

On WordPress.com, the path is the same. Its export guide says sites with roughly 1,000 or more posts or pages get the export by email as a ZIP of several XML files, and you import each one separately.

What's in the WordPress export, and what isn't?#

Content In the export file?
Posts and pages Yes
Comments Yes
Categories and tags Yes
Navigation menus Yes, with All content
Custom fields and custom post types Yes
Photos, videos and other media files No. Only links to them.
Theme and design No
Plugins and their settings No

How do I download my WordPress photos?#

WordPress.com says the export "does not contain the media files themselves", only links to them.

  • WordPress.com: go to Tools → Export → Media Files and click Download. You get one archive with your files in folders by year and month (WordPress.com Help).
  • Self-hosted WordPress: a plugin such as Export Media Library adds Media → Export, which downloads a ZIP. It hasn't been tested with the latest WordPress versions, so try it on a copy first. Your web host's file manager is the other route.

If you're moving to another WordPress site, there's a simpler way. WordPress's import tool has a Download and import file attachments option that brings the photos in during import (WordPress import guide). WordPress.com advises keeping your original site public until the new site has copied your images, then comparing the number of files in both media libraries.

Where can I import a WordPress export file?#

New site Takes the WordPress file?
Another WordPress site Yes. Tools → Import → WordPress.
Wix Blog posts, yes. Wix Blog imports up to 5,000 posts at a time, with text, images, dates, photo descriptions (alt text) and categories, but not authors or tags (Wix Help).
Squarespace Yes, content from WordPress (Squarespace Help).
A real estate website platform It depends. Ask the platform's support team which file it accepts before you export.

What doesn't the export keep?#

The export carries content, not the way your site looks or what it does. Page builder layouts, contact forms, IDX listing search, home valuation tools, mortgage calculators and anything else a plugin adds get set up fresh on the new site.

If you're moving to a builder that doesn't take the WordPress file, you can save the pages from the live site instead. PageHaul saves each page as you see it in Chrome, with its formatting, links, photos (with file names and photo descriptions), the title and description Google shows (meta title and description) and its main address (canonical link). Its CSV for your new site export shapes that for the builder you pick, such as Wix or WordPress, or Any other site.

Where to go next#

Before you switch, make a content inventory and a redirect map, so every old address forwards to its new page. Keeping your Google rankings when you move covers launch. Web designers can see the page for web designers and brokerage rebrands.

Step by step

  1. Open the export screen

    In your WordPress dashboard, go to Tools, then Export.

  2. Choose what to export

    Choose All content, or pick Posts or Pages and filter by category, author, date or status.

  3. Download the file

    Click Download Export File and save the XML file to your computer.

  4. Download your photos

    On WordPress.com, go to Tools, then Export, then Media Files. On self-hosted WordPress, use a media export plugin or your host's file manager.

  5. Keep the old site live

    Leave the old site public until the new site has copied every photo, then compare the number of files in both media libraries.

Common questions

Does the WordPress export include my images?

No. WordPress.com's help says the export file holds links to your media files but not the files themselves. Download your media library separately, or import while the old site is still live so the new site can copy the photos.

Can I import a WordPress export file into Wix or Squarespace?

Yes, for blog posts. Wix Blog imports posts from a WordPress XML file, up to 5,000 at a time, and Squarespace imports content from WordPress. Some other builders and real estate website platforms don't take the file directly, so ask before you export.

Does the export include my theme and plugins?

No. The export covers your content: posts, pages, comments, categories, tags and menus. Themes, plugins and their settings don't come with it.

What if my export file is too big to import?

WordPress's import guide says a large file can make the server run out of memory. Ask your host to raise the memory limit, or export in smaller pieces by filtering Posts by date range.

Who this is for