How do I merge the contents of a database with Wordpress?

Discussion in 'Programming' started by adell50, Oct 23, 2011.

  1. #1
    I have a database (.csv) with location and city data.

    I would like to merge it with Wordpress, such that I create a new page for each field in the database.

    Can someone point me in the direction to accomplishing this?

    Thanks!
     
    adell50, Oct 23, 2011 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    It should be converted to the table structure of pages for wordpress... can't done automaticly as far as i know:)
     
    EricBruggema, Oct 25, 2011 IP
  3. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #3
    How far into rewriting Wordpress do you want to go? You could change the page part of WP to be dynamically created from your database.
     
    Rukbat, Oct 25, 2011 IP
  4. KsNitro

    KsNitro Greenhorn

    Messages:
    60
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    20
    #4
    I'm working on something just like this. My approach will be to create a new table with cities and towns. Then separately, when the pages are created, pull city/town data from that table. In my project I won't be creating all the pages at once. But, if I was I'd probably create an import script or plugin that would manage it (while still pulling the data from the separate city/town table).
     
    KsNitro, Oct 26, 2011 IP