Forums

Creating Posts from non-blog SQL (4 posts)

  1. kelvster
    Member
    Posted 3 years ago #

    I am looking to create around 1000 posts from our existing mysql database, but it's not wordpress and it's not a blog. The plan is to pull entries from different tables/fields using SQL queries, which are to become the posts in the new wordpress installation.

    There doesnt seem to be any plugins for this.

    What's the best way to create the posts, is it creating an XML doc with the SQL, which would then be imported as RSS? If so, what fields are required.

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    Saw this recommended a while back:

    1.Install a WordPress blog.
    2.Export the blog (Manage->Export)
    3.Analyse the resulting XML (WXR) file and use that to create your own XML file with your 'posts'
    4. Use Manage->Import->WordPress to import those posts from your manufactured XML file.

  3. kelvster
    Member
    Posted 3 years ago #

    Thanks for your reply Michael.

    It seems that you can just create a simple rss doc, with only <item> <title> <description> for each entry. Useful only if you don't have existing tags, comments of course, but wordpress can still import it.

  4. eric_donovan
    Member
    Posted 3 years ago #

    You could use SQL to copy the data from your old database tables direct to your new WordPress database assuming they're on the same system.

    As long as you put the data in the correct fields in the tables it should work (Note - I don't know too much about WordPress but I'm assuming it just builds the pages based on what it finds in the db)

    Once you install WordPress try to add a few posts just using SQL direct to the DB and see what happens maybe.

Topic Closed

This topic has been closed to new replies.

About this Topic