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?