The Recursive Shortcode plugin provides the [recursive-shortcode]
shortcode for WordPress to use shortcodes in shortcodes (nested shortcodes).
Just write: [recursive-shortcode]CONTENT[/recursive-shortcode]
The CONTENT
is read by the parser, found shortcodes are properly executed.
The documentation, more examples and clues can be found on the project page.
(From the banner. See above.)
[recursive-shortcode][icon name="[urlparam param="icon"]"][/recursive-shortcode]
First the inner shortcode (urlparam) is evaluated. The result inserted as parameter for the icon-shortcode. urlparam
is from plugin URL Params. icon
is from plugin Better Font Awesome.
If you open: https://yourlocation.lan/page-with-recursive-shortcode?icon=file-pdf
You’ll get the icon file-pdf
.
Post your issues on the project page.
Please read the README.md of this project.