Toto je starší verze dokumentu!
Shortcodes
Shortcodes use attributes, some are optional, some are required. We will use the following syntax to specify required and optional attributes:
[shortcode-name required='this|that' required='%d' optional='%s']
- this|that means you can either use „this“ or „that“
- %d represents a number
- %s represents a piece of text
Some shortcodes (Button for example) can have content (i.e. the text you see inside the button.) These are used like this:
[shortcode-name attributes]Content of the shortcode[/shortcode-name]