Common Shortcode Attributes

In addition to specific shortcode attributes Awesome Shortcodes have common attributes:

before
(optional) Content to add before the shortcode output. Ignored if shortcode output is empty.
Default: None
after
(optional) Content to add after the shortcode output. Ignored if shortcode output is empty.
Default: None
on_empty
(optional) Content to display if shortcode output is empty.
Default: None
on_zero
(optional) Content to display if shortcode output is zero.
Default: 0
do_shortcode_atts
(optional) If you wish to apply shortcodes in awesome shortcodes attributes, list attributes here. Square brackets [ and ] must be replaced with { and }. Can be comma separated list. E.g.:
[number_counter number_to="{total_posts post_type='product'}" do_shortcode_atts="number_to"]
Default: None
do_shortcode_content
(optional) If you wish to apply shortcodes in awesome shortcodes content, set this attribute to yes. E.g.:
[text3d do_shortcode_content="yes"][total_posts post_type="product"][/text3d]
Default: no
lang
(optional) Can be comma separated list.
Default: None
not_lang
(optional) Can be comma separated list.
Default: None
strip_tags
(optional) If you wish to strip tags from shortcode output, set this attribute to yes.
Default: no
No comments yet.

Leave a Reply