Recursive Shortcode Recursive Shortcode

Recursive Shortcode

Created by: Kai Thoene

Rating:
Downloaded: 418 times

The Recursive Shortcode plugin provides the [recursive-shortcode] shortcode for WordPress to use shortcodes in shortcodes (nested shortcodes).

Documentation

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.

Example

(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.

Issues

Post your issues on the project page.

Further Information

Please read the README.md of this project.

Screenshots

  • Single nested, shortcode.
  • Double nested, shortcode.

Categories

Get New Themes & Resources