• armageddondesign

    (@armageddondesign)


    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.

    Help?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Brak

    (@brak)

    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(); ?>

    Moderator James Huff

    (@macmanx)

    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.

    Thread Starter armageddondesign

    (@armageddondesign)

    macmanx,

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

    MJ

    macman,

    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.

    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.

    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
    https://mysite.net/wp-rss.php
    and I also tried https://mysite.net/wp-rss2.php

    Unfortunately, this is what i’m getting:

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

    Any advice would be greatly appreciated. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Output all posts to a single XML file?’ is closed to new replies.