Forums

use templates to provide dynamic content? (3 posts)

  1. nttaylor
    Member
    Posted 1 month ago #

    I am very new to Wordpress, so please forgive me if this is an ignorant question. My problem is that I need to create a page for a real estate agent on which the user will first be presented with a choice of property types (single-family homes, apartments, empty lots, etc.). Clicking on one of these will bring up a listing of all the realtor's properties of that type. I could just set up a regular website with this functionality, but the realtor wants it to be part of her Wordpress blog.

    So, what is the best way to run the necessary php code within a Wordpress page? I realize that Wordpress pages are not files. Therefore my choices for getting executable php code into a Wordpress page seem to be either:

    1) Make a new Page Template that contains my code, and then create a new page which uses that template. My limited understanding tells me that this is not the way Templates are intended to be used, because the new "page" will not contain any of its own content, but it will just be this template that happens to present the data described above.

    or 2) Attempt the same with a plugin, except that I don't know if plugins can be configured to operate only on certain pages.

    Both of these approaches seem very hacky. Is there a better way?

  2. esmi
    Member
    Posted 1 month ago #

    Have you looked at some of the real-estate plugins?

    http://wordpress.org/extend/plugins/tags/real-estate

  3. nttaylor
    Member
    Posted 1 month ago #

    Yes, but we want to write our own. Additionally, the fact that the question came up as part of a real estate project is only mentioned to give context to the question. Mostly this is a general question about how templates and plugins are used in Wordpress, and about what is the best way to get dynamic content that doesn't really have anything to do with blogging into a Wordpress page.

Reply

You must log in to post.

About this Topic

Tags