[WordPress] 外掛分享: Dynamic Shortcode

首頁外掛目錄 › Dynamic Shortcode
WordPress 外掛 Dynamic Shortcode 的封面圖片
40+
安裝啟用
尚無評分
2156 天前
最後更新
問題解決
WordPress 4.5+ PHP 5.3+ v1.0 上架:2020-03-10

內容簡介

此外掛可讓您將短代碼用作其他短代碼的屬性,短代碼內含另一個短代碼,且支援動態短代碼。

如何使用

使用此短代碼建立動態短代碼

[dy_shortcode sc=”” at=””][/dy_shortcode]

例如使用另一個短代碼製作具有動態 ID 的圖庫

[custom id=”123″]

最後合併的動態短代碼

[dy_shortcode sc=”gallery” at=”id”][custom id=”123″][/dy_shortcode]

只有 1 個屬性可以是動態的,若有多個短代碼輸入,請使用逗號 (,) 分隔

[dy_shortcode sc=”gallery” at=”id”][custom id=”123″],[custom id=”321″],[custom id=”231″][/dy_shortcode]

所有其他靜態屬性均可放置在最終的短代碼中

[dy_shortcode sc=”gallery” at=”id” size=”medium” background=”white”][custom id=”123″][/dy_shortcode]

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Dynamic Shortcode」→ 直接安裝(推薦)

原文外掛簡介

A small plugin which allows you to use shortcodes as the attribute of other shortcode, shortcode inside shortcode, dynamic shortcode.
How to use

Use this shortcode to make dynamic shortcodes
[dy_shortcode sc=”” at=””][/dy_shortcode]

For example making a gallery with dynamic id by another shortcode

[custom id=”123″]

Final dynamic shortcode merged
[dy_shortcode sc=”gallery” at=”id”][custom id=”123″][/dy_shortcode]

Only 1 attribute can be dynamic, use comma (,) for multiple shortcode entries
[dy_shortcode sc=”gallery” at=”id”][custom id=”123″],[custom id=”321″],[custom id=”231″][/dy_shortcode]

All other static attributes can be placed on the final shortcode
[dy_shortcode sc=”gallery” at=”id” size=”medium” background=”white”][custom id=”123″][/dy_shortcode]

延伸相關外掛

文章
Filter
Apply Filters
Mastodon