Tag do_shortcode

三、Shortcode 短代碼 Enclosing 型態

前兩個教學都是以 self-closing 方式呈現,不用寫終止標籤,像是 html 的 img 元素一樣,不用結尾的標籤。Shortcode 也有 Enclosing 型態,他的呈現也和一般 html 一樣,例如:[my_short_code]中間內容[/my_short_code]。

© 2024 賽門的WordPress學習筆記 — Powered by WordPress

Theme by Anders NorenUp ↑