This shortcode is used to perform a set of repetitive actions a fixed number of times, based on values passed to it, similar to a programming FOREACH loop.

This shortcode does NOT support conditional branching with [ELSE_foreach].
Shortcode nesting is NOT supported.


set This parameter defines a set of comma separated (default) values passed to the shortcode, for each of which an iteration will be performed. The value set may include words or phrases, but may not include commas, unless a different separator is assigned.
Default: none.
Required: yes.
separator Defines the separator to use in order to separate the values passed to the shortcode.
Default: , (comma).
Required: no.


[mbr_foreach set='5,12,57,31,78']
  Going thru the loop; this time the value is 

All actions between the shortcode tags would be performed 5 times, once for each value in the “set”.
The internal variable placeholder, is updated at each iteration.


There is currently no ActiveMember360 API function equivalent for this shortcode.


Please consider the effect a large number of iterations could have on the performance of your site.