Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Export Posts and Comments As Text?

         

Planet13

10:42 pm on Jan 9, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Anyone know of a way to export ALL posts and comments as a text file (or files)?

There are a few export plugins, but none of them seem to work with Wordpress 4 (I'm running the latest version of WP, whatever that is?)

alternatively, is there some way to use the standard XML export and then convert it into normal text / spreadsheet layout?

Thanks in advance.

travelin cat

10:56 pm on Jan 9, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



This is built in to Wordpress. Go to the sidebar in the dashboard, under Tools you will find "Export". This is from the top of that page:

"When you click the button below WordPress will create an XML file for you to save to your computer.

This format, which we call WordPress eXtended RSS or WXR, will contain your posts, pages, comments, custom fields, categories, and tags.

Once you’ve saved the download file, you can use the Import function in another WordPress installation to import the content from this site."

Planet13

11:45 pm on Jan 9, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



@ travelin cat

Thanks for the explanation.

Unfortunately, I will NOT be importing it into another wordpress installation. Instead, I will be trying to import it into some basic html pages.

If there were some app to convert it from the xml format into html / text, that would be great.

Planet13

4:57 pm on Jan 10, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Well... it seems for now the quickest thing to do is just download it and open in Notepad++ and try and copy and paste the posts into another new text file.

not2easy

5:10 pm on Jan 10, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



In Notepad++ you could also find and replace (with nothing) each repetitive <xml tag and end up with plain text. I haven't used Notepad++ in years or I'd give clearer instructions, but it should be fairly simple to do.