This shortcode is used to set chunk of htmls or shortcodes as a variable that can be called later. If other shortcodes are used inside aw2_set_template they are only resolved when template is actually called. aw2_set_template is often used when we need to use a shortcode inside same shortcode, e.g. using aw2_loop inside another aw2_loop.

  • main:
    any value give to ‘main’ become the varible with which we can call this variable to use. If you set the variable name dirctly without ‘main=’ it will still work.