這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Recursive Shortcode

外掛說明

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.

螢幕擷圖

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

安裝方式

Via WordPress Dashboard (recommended)

  1. Navigate to Dashboard – Plugins – Add New;
  2. Search for Recursive Shortcode;
  3. Click Install, then Activate.

Manual installation

  1. Download the plugin as a .zip file;
  2. Unzip downloaded archive and upload the recursive-shortcode folder under your /wp-content/plugins/ directory (resulted plugin path should be /wp-content/plugins/recursive-shortcode/);
  3. Navigate to Dashboard – Plugins and activate the plugin.

常見問題集

What does the plugin do?

It allows you to use nested schortcodes in shortcodes in a propper way.

What is this plugin?

Basically a parser for nested shortcodes. With an analysing tool to understand the internal evaluation hierarchy.

Who should use it?

Everyone who wants the output of a shortcode as content or parameter of another shortcode.
Simple example: Inject the output from Plugin URL Params into Display Posts.

Do I need to have coding skills to use this plugin?

No, just writing shortcodes.

How do I upgrade? Or get a paid version?

No upgrade. No payments. It’s FOSS.

My question is not listed.

Open an issue on the project page.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Recursive Shortcode〉的開發相關工作。

參與者

將〈Recursive Shortcode〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.1 (2020-08-12)

  • Sanitize fields

1.0.0 (2020-08-10)

  • Initial release