Is it possible to use the WXRS WP export format to create a site in Local?

My understanding is that the only way I have to export an existing WP site to Local is:

  1. Go to the cPanel and make a copy of the /wp-content folder to my local computer
  2. Go to php MyAdmin and find my database. Click on it then click on EXPORT, “Quick” method, then Format “SQL”. Click GO and save it to the same place the wp-content folder is located on my computer.
  3. Create a zipped archive file from the two items (contend from /wp-contend and export from my database)
  4. Import into Local.

Yes? If the above is true, using the XML export provided by WP is useless. Correct?
Thank you

Hi jsapriel,

Thanks for reaching out :slight_smile:

You should be able to use WP’s .xml export as you would on any WordPress site, so that should work, or the four step process you outlined. Whichever you find best for your workflow, really.

Thanks!
Jeremy

Hey Jeremy,

Thank you for the reply, That is great news.
One more question: does it mean I need to zip the WordPress XML file so that the Local upload routine recognizes the file??

Thank you again for your help

Jacques

Jacques,

The XML file that WordPress provides needs to be imported into an already created Local site under WordPress » Tools » Import.

Local doesn’t support automatically creating a site with the XML file alone.

Hey Clay,

Thank you for the precision, and your response brings up another question:
How do I create a Local site where I can import the XML file that WordPress
provides?
Is a a link to a Local Help/User Manual you could send me on this?

Thank you so much for your help

Jacques

Hi Jacques,

The best way to do that would be to:

  1. Create a new site in Local by clicking on the + in the bottom-left
  2. Open the WordPress Dashboard for the newly created site
  3. Go to Tools » Import » WordPress and install the appropriate plugin to import WordPress XML files
  4. Import the XML export

Cool
Thank you for the clarification Clay.
Don’t I need to zip the WordPress XML file before I try to upload it to
Local?

Thank you again Clay

Jacques

Nope, you only need to upload the XML file itself. See https://codex.wordpress.org/Importing_Content#WordPress