Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Post or Page? Reply To: Post or Page?

#196616
Senff
Participant

The problem here is not the coding itself — it’s how you’re going to structure your data.

I think it’s clear that every building will be a post, so you create a Custom Post Type called “building”.

Taxonomies: try to list all the types of categories in which you can sort/categorize your buildings. When I do this, I usually try to see if this would be a legit question: “show me all buildings that are….“.

  • You want to be able to sort all your buildings by number of floors? Create a taxonomy called “floors” or “stories” with possible values “1”, “2”, “3”, etc.
  • You want to be able to sort all your buildings by area? Create a taxonomy called “area” with possible values “north”, “south”, etc.
  • You want to be able to sort all your buildings by price? Create a taxonomy called “price” or “value” with possible values such as “100-200k”, “200-300k”, etc.
  • You want to be able to sort all your buildings by type? Create a taxonomy called “type” with possible values such as “office”, “residential”, etc.

Anything you can think of related to how you might want to sort your buildings at any point, you should create a taxonomy for that.

Custom Fields: add custom field types for any unique data related to the building that’s unique and that you don’t really ever want to use to sort your buildings. For example, the following data would make sense:
– address
– size in square feet
– phone number
– photos

So, having said that, it’s all up to you how you want to structure this, so only you can decide what taxonomies and custom fields you should create.