1

I have 8 custom post types for a lottery website I am currently working, one custom post type for each game that is in the lottery, but I am now wondering if this is the best way to go about this, would I be better off do you think in creating 1 custom post type called draw results, and having all the games results in this one custom post type, and then have categories to select for which game the results apply to, or should I stick with the 8 custom post types, and list them under a game information page in my menu as this is how I currently have it setup.

Some games have 5 numbers then the bonus number, others have 6 numbers and the bonus, others have 2 bonus numbers, others have no bonus numbers, but I was just putting these into the wysiwyg editor not using custom fields, am not sure what to use as the title for each post also am thinking from an SEO point of view.

Some games are televised, some arent so there will be custom things like presenter, and celebrity guest presenter, aswell as location in some rare cases, its not a big issue for these to be on all draw games even those that aren't televised. This I presume would use the custom meta fields.

There could potentially be 8 categories 1 for each game, as I was intending to have a blog section on the site as to why I thought about using custom post types to keep the draw results seperate from the blog.

The custom post types wouldn't be hierarchical, there could be 2 categories assign to each draw result one which would be the game it is for, and another which would be simply Draw Results perhaps?

The categories and custom post types would be :-

  • Lotto
  • Lotto Plus 5
  • EuroMillions
  • Thunderball
  • Lotto HotPicks
  • Daily Play
  • Dream Number
  • Lotto Extra

I'm in two minds as to what the best way would be, am also trying to think of this from an SEO point of view aswell.

2 Answers 2

0

One possible solution:

  • Custom Post Type draw-results, where each post is a contest/game result
  • Custom Taxonomy contest (or game), where each term is a different contest/game
  • When you create a draw-results post, taxonomize it using the appropriate contest (or game) term.

EDIT

From your updated question:

Some games are televised, some arent so there will be custom things like presenter, and celebrity guest presenter, aswell as location in some rare cases, its not a big issue for these to be on all draw games even those that aren't televised. This I presume would use the custom meta fields.

Exactly. Things like "presenter", "celebrity guest presenter", and "location" are unique to a given post, and are well-suited to custom post meta.

Especially since you also want to have a "normal" blog, I would definitely go with the CPT route for your lottery results. Though, you could simply exclude the lottery-results category/categories from your normal blog feed.

3
  • This is what I was also thinking am in two minds as to what the best way would be, I have updated my original question with more detailed information, would you be able to revisit it and see what you think.
    – AeroMaxx
    Commented Nov 2, 2011 at 9:47
  • See updated answer; pretty much the same thing, based on your updated question. Commented Nov 2, 2011 at 13:29
  • how do I create custom fields on a custom post type, there is no checkbox option for them in the screen options in wordpress itself.
    – AeroMaxx
    Commented Nov 3, 2011 at 19:25
0

Depends I guess from how much difference there's between games in the lottery. Ie, if you need to use specific custom meta fields for each game, it would be more practical organizing them with different post types. Another thing would be if they require different taxonomies or not, if certain games should have a hierarchical taxonomy and others not, etc. If the different games don't change much (suppose they consist only in drawn numbers), and there wouldn't be much difference in their taxonomies, then you could just create a single post type for all the games and use a taxonomy to differentiate them.

Perhaps you could provide more detailed info for a more precise opinion on your matter.

[AFTER YOU HAVE EDITED YOUR ORIGINAL QUESTION]:

create one custom post type and one taxonomy to differentiate games

add custom meta fields to specify details about certain games - then do something on the frontend to display games differently filtering taxonomies and custom fields

as for the SEO, you should be fine, since you can define slugs for everything; use microformats for your frontend if possible, optimize usual things as you would do in any blog (chaching, permalinks...) and that should do it

4
  • I have updated my original question with more detailed information, would you be able to revisit it and see what you think.
    – AeroMaxx
    Commented Nov 2, 2011 at 9:43
  • I'd second Chip Bennet answer I will edit my original post now
    – unfulvio
    Commented Nov 2, 2011 at 18:12
  • how do I create custom fields on a custom post type, there is no checkbox option for them in the screen options in wordpress itself.
    – AeroMaxx
    Commented Nov 3, 2011 at 19:26
  • there are a few ways - simplest is to open the post type (add new/edit existing), click on "screen options" on the top right part of the screen, then make sure "custom fields" is checked. Now you can create custom fields and assign values to them. As you will notice this is not too elegant and it could be also confusing. You could then create very sophisticated meta boxes within your functions.php codex.wordpress.org/Function_Reference/add_meta_box or use some plugin to do the job - I like Advanced Custom Fields personally wordpress.org/extend/plugins/advanced-custom-fields
    – unfulvio
    Commented Nov 4, 2011 at 19:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.