• I am building a website that contains a page for real estate listings. I have a list of information on a large number of addresses in my area and wish to create a wordpress page that can be used as a template for each of these addresses. For example, I would like to have links for each address:

    http://www.domain.com/123-Fake-Street/
    http://www.domain.com/234-Fake-Street/
    http://www.domain.com/345-Fake-Street/

    and so on. I would like to then link these pages to a template I have created in wordpress and have that template update a few text fields based on the information I have on each of the addresses.

    I have done this before using php and mySQL, but I am unsure how to do this through wordpress. Any help would be appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I would recommend creating a custom post type, and the post type archive page as the listing, and the single posts would have unique urls. You can then add meta fields to the post type that can be used in the template for template data not part of the content.

    If you don’t want to get your hands dirty and build it from the ground up, you can start with at custom post type plugin or even a more specific real estate listing plugin.

    Thread Starter sdet

    (@sdet)

    Thanks for the response. Can I add as many listings to the archive page as I want? My hope is that I could have pages for the roughly 10,000,000 addresses I have in a csv file. If I were to create 10,000,000 posts I see how there would then be unique urls for each post and I could have them appear on the page I want, but it isn’t really feasible to upload that many even with a plugin. I haven’t used post type archive pages before, but if I could access an array of data or a database there I think it would definitely solve my problem!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘dynamic content from database’ is closed to new replies.