ShortCode

[tws_group_by]

This ShortCode is part of the ToolWine ShortCodes Plugin. Download and Install the ToolWine ShortCodes Plugin to use it. Note that the Plugin requires Toolset Types and Views (or Blocks) installed and active.

This ShortCode is part of the ToolWine ShortCodes Plugin. Download and Install the ToolWine ShortCodes Plugin to use it. Note that the Plugin requires Toolset Types and Views (or Blocks) installed and active.

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:

  • conditionstring [year|month]
  • valuemixed [date]
  • infoboolean (1)

Example:

[tws_group_by condition="month" value="TYPES_DATE_FIELD_SHORTCODE_HERE"]Output This only when Condition matches[/tws_group_by]