Skip Navigation

[Resolved] Custom grouping in a loop

This thread is resolved. Here is a description of the problem and solution.

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 6 years, 8 months ago. 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.

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)

This topic contains 2 replies, has 2 voices.

Last updated by Max 6 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#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

Languages: English (English )

Timezone: 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!