WordPress.org

Ready to get started?Download WordPress

Forums

Custom Fields vs Taxonomy (2 posts)

  1. dashaluna
    Member
    Posted 4 years ago #

    Hello everyone,

    I'm just starting with WP so please bear with me.

    I need to create posts with lots of meta-data for a theater plays (opening date, closing date, country, theater name and URL, cast list (role and name), photos and some others).

    I was wondering what is the best way to do it - using custom fields or taxonomy? I'm confused and don't really understand the differences between them. I would really appreciate any advice!

    Also, how is it better to implement the "cast" feature where I will have lots of role & name records?

    Many thanks in advance,
    Dasha

  2. Teo Maragakis
    Member
    Posted 3 years ago #

    Hi Dasha,

    I think since you posted this 7 months ago, you already solved it, I'm replying for the rest.

    Taxonomies are categorizations, they are divided in hierarchical (like post categories) and non-hierarchical (like post tags).

    Custom fields are data that you add to a custom or built-in post type.

    Dates should be custom fields (so the user can search from/to date, or see what's on in the current week).
    Countries could be a hierarchical taxonomy.
    Cast list should be a non-hierarchical taxonomy.

    Theater could be a non-hierarchical taxonomy, but there wouldn't be a way to add the URL, you need custom code for that.

    I know I didn't explain very well, but that's how I'd do it.

Topic Closed

This topic has been closed to new replies.

About this Topic