[WordPress] 外掛分享: Include Content By Shortcode

首頁外掛目錄 › Include Content By Shortcode
WordPress 外掛 Include Content By Shortcode 的封面圖片
50+
安裝啟用
★★★★★
5/5 分(4 則評價)
511 天前
最後更新
問題解決
WordPress 4.0.1+ PHP 5.2.4+ v0.5 上架:2018-05-25

內容簡介

這個外掛可以透過短代碼在多個文章或頁面中加入單一內容,類似 PHP 的「include」函數的概念。透過簡單的短代碼,可以加入 HTML、CSS 和 JS。例如,我的品牌標語「最優質的產品」要在多個頁面和文章中使用,就可以在 Included Content 中加入這個標語內容,然後外掛會產生一個短代碼代表這個內容。只要將這個短代碼貼在需要加入標語的地方,就可以將標語加入文章或頁面中。在加入內容時,也可以加入 CSS 和 JS,這些內容會一併包含在短代碼貼上的位置。如果未來需要更改標語,只需要在 Included Content 中修改,就會自動更改所有使用到該短代碼的地方。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.5) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Include Content By Shortcode」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin enables users to add the same content to multiple posts and pages using a shortcode. It functions similarly to PHP’s ‘include’ function.
Users can include HTML, CSS, and JavaScript in their content with a simple shortcode.
For example, if my brand’s tagline, “The Best Of Its Kind,” needs to be displayed on various pages and posts, I would add it to the Included Content section. The plugin will generate a shortcode for this content, which I can then place wherever I want the tagline to appear.
Additionally, CSS and JavaScript can be added alongside the HTML content, ensuring they are included wherever the shortcode is used.
In the future, if I change my tagline, I only need to update it in the Included Content section, and it will be updated everywhere the shortcode has been used.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon