ShortCode
[tws_group_by]
The [tws_group_by]
allows to display contents depending on a input compared to its previous value in a loop. You can for example group posts in a View loop by their Date, and output the date only if it is different to its previous instance in the loop.
Attributes:
condition
– string [year|month]value
– mixed [date]info
– boolean(1
)
Example:
[tws_group_by condition="month" value="TYPES_DATE_FIELD_SHORTCODE_HERE"]Output This only when Condition matches[/tws_group_by]