Sauter la navigation

[Résolu] Use a repeater fields group to populate a view.

This support ticket is created Il y a 5 années et 9 mois. 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)

Marqué : ,

Ce sujet contient 0 réponses, a 1 voix.

Dernière mise à jour par romanB-3 Il y a 5 années et 9 mois.

Assisté par: Christian Cox.

Auteur
Publications
#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.