Skip Navigation

[Resolved] Use a repeater fields group to populate a view.

This support ticket is created 5 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.
Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 0 replies, has 1 voice.

Last updated by romanB-3 5 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#1252309

Hi,
I have a custom post type "MATCH", with several posts "MATCH 1", "MATCH 2"...
I have a repeater field group called "bets", with fields "name, phone, team1 score, team2 score".

What I need is :
- Use a form to allow not logged in users to add a new "bet" with their "name, phone, team1 score, team2 score" ;
- Use a view to display all bets for a all matches ;
- Use a view to display all bets for a specific match ;
- Use a view to display all bets for a specific match that match a condition.

I understand I can easily build this by adding a CPT "Bet" and a relationship, but that would mean I will have as many posts as I have bets, which may be enormous - and would therefore be weighing the database.

So my question is : is it possible / easily achievable to do this with just 1 CPT and a repeater ?

Thank you.