Output all posts to a single XML file? (7 posts)

  1. ArmageddonDesign
    Posted 10 years ago #

    I've been searching around the forums and have yet to find anything on this:

    Is there any way possible to have WP output my whole archive (all posts) to a single XML/feed file? I'm shutting down my blog and want to allow visitors to download the entire archive in a single file that they can load into their favorite RSS reader.


  2. Brak
    Posted 10 years ago #

    Well, you could edit up something like wp-rss2.php, which just uses the loop here:

    <?php $items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>

    Add a query_posts before it so it's something like:

    <?php query_posts('showposts=100000000');$items_count = 0; if ($posts) { foreach ($posts as $post) { start_wp(); ?>

  3. James Huff
    Support Representative
    Posted 10 years ago #

    1. Find out how many posts your have.

    2. In Options/Reading change the number of posts in the syndicated feeds to the total number of posts in your blog.

    2b. You may have to clear your browser's cache before step #3.

    3. View your RSS feed in your browser.

    4. Save the output.

  4. ArmageddonDesign
    Posted 10 years ago #


    That worked perfectly! Stupid me had completely forgotten that you could jack the post syndication count up that high. Thanks!


  5. sfong15
    Posted 10 years ago #


    I did the same as your advice about, export to xml file was OK as I can see the oldest post in the file. Importing using WP2.0 feature is a problem I think only a small portion has gone in. Is there anything wrong with the import.php file of WP2.0 I'm not good at php so need some helps here.

    If this works OK this would best way of moving database from one host to another instead of messing around of databases.

  6. petit
    Posted 10 years ago #

    Well ( Okay came her late :), this isn't the whole truth!
    You get the posts, and you get the categories. If you have subcategories, this will not be replicated.
    You can do the same for comments, but make a test first. I'm not sure the comments will glue to the posts commented.

  7. tinynurse
    Posted 10 years ago #

    wow, so i made this work a few months ago when moving from one WP domain to another.........but i'm trying to move again.( new domain, clean wp install, just want to import my entries)

    i'm pretty sure my rss feed is
    and I also tried http://mysite.net/wp-rss2.php

    Unfortunately, this is what i'm getting:

    "XML Parsing Error: undefined entity
    Location: http://mysite.net/wp-rss.php
    Line Number 4, Column 9::

    Any advice would be greatly appreciated. :)

Topic Closed

This topic has been closed to new replies.

About this Topic