• I use WP for a football club web site (newenglandnomads.net).

    Match reports go into the “match report” category. No surprise there.

    I have other information stored that I would like to be able to add automatically to match reports (I already display it on a fixtures/stats page) – detailed score, team list, goal scorers, award winners. This information is specific to a fixture (which can be defined by round and season with fixture date to provide a “belt-and-braces” check).

    So, I can think of three possible approaches to this: entering the three items either as tags (I don’t use tags elsewhere), metadata (this seems the best approach to me, maybe but it isn’t something I’ve used previously) or having a sub-category created for each fixture (there are generally 2-4 match reports per fixture).

    I then need to say something along the lines of:
    if post is in category “match reports” then display match information for round-season-date (however that information is held).

    Is metadata the best way to go? Or one of the other routes? I may have misunderstood what custom metadata is intended for.

    Has anyone done anything similar that I might see the code for to shorten the development process?

    Thanks,
    Ron.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How-to add stored information to posts in a category? tag? metadata? sub-cat?’ is closed to new replies.