Welcome to WebmasterWorld Guest from 54.198.52.8

Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Export Posts and Comments As Text?

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

Senior Member

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:June 16, 2010
posts: 3823
votes: 29


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.
10:56 pm on Jan 9, 2016 (gmt 0)

Moderator This Forum from US 

WebmasterWorld Administrator travelin_cat is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Feb 28, 2004
posts: 3230
votes: 12


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."
11:45 pm on Jan 9, 2016 (gmt 0)

Senior Member

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:June 16, 2010
posts: 3823
votes: 29


@ 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.
4:57 pm on Jan 10, 2016 (gmt 0)

Senior Member

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:June 16, 2010
posts: 3823
votes: 29


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.
5:10 pm on Jan 10, 2016 (gmt 0)

Administrator from US 

WebmasterWorld Administrator not2easy is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 27, 2006
posts:3451
votes: 181


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.