[WordPress] 外掛分享: DX Shortcode Freezer

首頁外掛目錄 › DX Shortcode Freezer
全新外掛
安裝啟用
尚無評分
4251 天前
最後更新
問題解決
WordPress 3.1+ v1.0 上架:2012-02-19

內容簡介

警告: 這個腳本會改變資料庫內容,請自行承擔使用風險!務必先備份資料庫。

Shortcode Freezer。如果你的網站內容是基於 shortcode,且該內容會產生一些靜態資料(例如作者、定價、按鈕和其他只提供 HTML 標記與 shortcode 的清單),
那麼你可以在切換佈景主題前將其轉換為靜態值。這將評估 shortcode 並產生 HTML 標記,然後用評估後的內容替換資料庫文章。

請注意,它將無法與產生動態內容的動態清單相容 - 他們將會「凍結」且不再具備動態功能。

你可以不必擔心 shortcode 相容性而切換佈景主題。一旦標記生成並嵌入文章,您的資料就會可見,而且您可以在新佈景主題上美化它。

外掛標籤

開發者團隊

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

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

原文外掛簡介

WARNING: This script alters the database content so use at your own responsibility! Backup your database first.
Shortcode Freezer. If you have a website with content based on shortcodes
and this content generates some static data (i.e. authors, pricing, buttons and other listing that just provides html markup with a ‘short code’),
then feel free to convert that to the static values before switching themes. This would evaluate the shortcodes and generate the HTML markup and replace the database posts with the evaluated content.
Keep in mind that it would not work with dynamic listings that generate dynamic content – they would ‘freeze’ and will not be dynamic anymore.
You can switch themes without worrying about shortcode compatibility. Once the markup is generated and embedded into posts, your data would be visible and you can style the markup in the new theme.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon