Skip Navigation

[Résolu] Custom grouping in a loop

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

The issue here is that the user had a custom grouping that he wanted to achieve.

Solution:

Views is possible to do custom groupings, rather simple custom groupings but anything complex won't be possible.

This support ticket is created Il y a 6 années et 8 mois. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par Max Il y a 6 années et 8 mois.

Assisté par: Shane.

Auteur
Publications
#623822

Max
example.jpg

Tell us what you are trying to do?
I know, sounds like crazy, but I'll still try.
Is it possible to somehow group the items in a loop? For example, as shown in the picture.

A task:
Outer div (black color) is opened, then condition:
if the sum of the custom fields in loop -- 8 + 8 + 8 + 8 + 16 + 50 = 98 is less than 100, then the items in this div, if the sum is greater, a new black div opens, and so on...

An uneasy task, I understand, but still, how can this be solved with the help of the Toolset.

#624367

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Max,

Thank you for contacting our support forum.

Unfortunately no this not not possible to do with out Views plugin, as any output layout that is specified will need to be applied to all the post that the view is displaying.

Thanks,
Shane

#624400

Max

I understood. Thank you!