Support » Plugins and Hacks » Taxonomy or post meta?

Viewing 1 replies (of 1 total)
  • Joel

    (@jneuenhaus)


    Can’t help on query efficiency, but as a general rule, use of a taxonomy is probably preferable in circumstances where the taxonomy “terms” will be present multiple times (this seems to be the case for both #1 and #2 in your example).

    For instance; if your custom post_types all have “measurements” (a “key” in terms of post meta), but the “value” of those measurements are all (or mostly) unique, using post meta would be more logical. Alternatively, if the “values” are recurring, using custom taxonomies would give you more flexibility within WordPress.

    To analogize; “key” is to “taxonomy” as “value” is to “term”, for post meta and custom taxonomies, respectively.

    Using taxonomies also provides you with some nifty native WP functions.

Viewing 1 replies (of 1 total)
  • The topic ‘Taxonomy or post meta?’ is closed to new replies.