[WordPress] 外掛分享: Shortcodes in Sidebar

首頁外掛目錄 › Shortcodes in Sidebar
400+
安裝啟用
★★★★★
5/5 分(2 則評價)
37 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v26.0 上架:2011-12-04

內容簡介

Shortcodes in Sidebar 外掛允許使用者在自訂 HTML 小工具中運行短代碼,解決 WordPress 內建不支援的問題,讓短代碼能正確顯示。

【主要功能】
• 在自訂 HTML 小工具中運行短代碼
• 無需設定,啟用即用
• 不會存儲任何數據或選項

外掛標籤

開發者團隊

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

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

原文外掛簡介

Paste a shortcode into a Custom HTML widget and WordPress prints it exactly as you typed it —

錯誤: 找不到符合條件的聯絡表單。

, square brackets and all — instead of running it. This plugin fixes that, and nothing else.
What changed since version 3.0
When this plugin was written in 2011, WordPress ran no shortcodes in any widget, and one line of code fixed it for every sidebar on the site. WordPress has caught up since:

Text widget — core has run shortcodes since WordPress 4.8.
Block widgets — core has run shortcodes since WordPress 5.8.
Custom HTML widget — core still does not, on any version, including 7.0.

So the plugin now does the one thing that is still missing. Where core already handles shortcodes, it deliberately stays out of the way — running them a second time is not a feature.
If you have been using version 3.0 on a recent WordPress, this release is also a bug fix. The old code hooked shortcodes onto the Text widget in a way that made core skip its own, correctly ordered pass, and shortcode output could come out with paragraph tags injected into the middle of it. That no longer happens.
Features

Shortcodes run in the Custom HTML widget, in every sidebar and widget area.
No settings, no setup. Activate it and it works.
No database tables, no options, no scripts, no styles, no tracking, no ads, no upsells.
Nothing to clean up when you delete it, because it stores nothing.

Privacy
The plugin collects nothing, stores nothing, and makes no external requests.

延伸相關外掛

文章
Filter
Mastodon