WordPress.org

Ready to get started?Download WordPress

Forums

Move from One WP install to Another (7 posts)

  1. phoenixd
    Member
    Posted 9 years ago #

    Hey everyone, I need to move a bunch of posts from one WordPress 1.5 blog to another currently running WordPress 1.5.1 blog. I need the posts to be integrated into what I already have. So more like Merging posts from two blogs into one. Any ideas?

  2. phoenixd
    Member
    Posted 9 years ago #

    Nada ?

  3. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Well ....... 40 minutes after posting .......

    My initial answer would be No - it is far far too complex a task.
    But:
    - how many posts
    - how many comments / pings / tracks are involved
    - any more information which could be considered remotely useful.

  4. phoenixd
    Member
    Posted 9 years ago #

    So merging blogs = too difficult. Plugin someone!?

    There are currently 25 posts and 4 comments, contained within 20 categories.

    And why is it so difficult a task?

    And thanks for the reply :D

  5. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Each post has an ID
    Each comment has an ID
    Each post has something which relates it to any comments and it's category
    A table exists which matches all that stuff together
    Each database is a self contained 'thing'
    If that was the absolute minimum, then for things to match up in the new database, everything has to be changed over, matched up, checked for potential collisions ... not easy, and beyond a plugin I would magine.

    25 posts ? You could do it manually ?

  6. phoenixd
    Member
    Posted 9 years ago #

    Yeah, I could do it manually, but I'd lose the comments, not that there are many, and I was hoping their was a way around doing it manually.

    I understand what you are saying, but here is what I see needing to be done.

    Export everything as SQL file.
    Have an application to upload it.

    Code grabs posts, looks at current last post number of blog that is going to get the new posts and then renumbers transferred posts based on that. (so if your last post id was 200, the newly transferred posts start at 201). [The only other thing it'd have to change is the categories of the posts ?]

    The code then does the same thing for comments.

    While it is doing this it keeps the information in two arrays to track what the numbers were and what it has been changed to

    It then uses those arrays to put in the comment linkages so the comments are related to the posts.

    Would something like that not work? Then you could merge tons of wordpress blogs as long as they were all from the same version.

  7. moshu
    Member
    Posted 9 years ago #

    If you write the code you are welcome! :) Probably others could use it, too.

Topic Closed

This topic has been closed to new replies.

About this Topic