Title: Custom post type approach
Last modified: August 31, 2016

---

# Custom post type approach

 *  [danovadia](https://wordpress.org/support/users/danovadia/)
 * (@danovadia)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-post-type-approach/)
 * I need to build an entertaining betting website for my workplace, where the users(
   registered) has an option to bet on sport events, who they think will win a match,
   team-a or team-b.
 * A page will show all the events the users can bet, along with a ‘bet’ / ‘vote’
   button.
 * When the user will choose an event, he will need to provide:
    1. Nickname 2. 
   Department 3. Upload a video-file of his speech 4. Of course – his vote (team-
   a / team-b from the event he chose).
 * I started with creating a custom post type (‘bet’) with adding all the fields(
   Meta Box), but im pretty stuck from here.
 * Can anyone give me a general idea of how the structure of this kind of thing 
   will look like?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [jack randall](https://wordpress.org/support/users/theotherlebowski/)
 * (@theotherlebowski)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-post-type-approach/#post-7411494)
 * one major question to be asked is: what’s the betting calculation engine behind
   the site?
 * how are you calculating odds and updating them as they shorten and lengthen in
   real time? a custom post type isn’t going to do any of this…
 *  Thread Starter [danovadia](https://wordpress.org/support/users/danovadia/)
 * (@danovadia)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-post-type-approach/#post-7411496)
 * im not going to calculate any odds. its all about A or B.
    when someone 4 employees
   will vote for team A and 6 employees will vote for team B i will just do a simple
   calculation for this event – 40% – 60%.
 *  [jack randall](https://wordpress.org/support/users/theotherlebowski/)
 * (@theotherlebowski)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-post-type-approach/#post-7411498)
 * have you looked at a plugin to do this for you rather than reinventing the wheel?
   a polling or voting plugin should do the job…
 *  Thread Starter [danovadia](https://wordpress.org/support/users/danovadia/)
 * (@danovadia)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-post-type-approach/#post-7411500)
 * i thought about it, but i need to add more data to each vote.
    i cant just give
   the users to vote, the main thing of their vote is the video-speech.
 *  [jack randall](https://wordpress.org/support/users/theotherlebowski/)
 * (@theotherlebowski)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/custom-post-type-approach/#post-7411507)
 * ok, the way i’d implement this is to create the custom post type and within that
   i’d use a polling plugin like [https://wordpress.org/plugins/simply-polls/screenshots/](https://wordpress.org/plugins/simply-polls/screenshots/)
   to handle the business logic of the actual voting/tallying (this plugin and others
   like it generate shortcodes that you can used to embed the poll in to the custom
   post type content) and in the custom post type i’d create a field that let’s 
   people embed a video that they’ve uploaded to youtube or somewhere else (always
   be thinking of your bandwidth where videos are concerned).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Custom post type approach’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [jack randall](https://wordpress.org/support/users/theotherlebowski/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/custom-post-type-approach/#post-7411507)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
