[WordPress] 外掛分享: HTMLComment

首頁外掛目錄 › HTMLComment
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
5839 天前
最後更新
問題解決
WordPress 1.0+ v0.1 上架:2010-03-22

內容簡介

這個外掛非常有用且簡單,可以使用標準的 HTML 註釋標記(<!– 以及 –>),來隱藏文章的一部分(連結、圖片等)。當 WordPress 把文章轉換為 HTML 時,會將兩個破折號轉換為破折號(&#8211;,在 Unicode 中為 &#038;&#035;8211;)。如果破折號後面跟著大於符號,這個外掛就會簡單地將其改回。因為 –> 是 HTML 的註釋結束標記,這樣就能重新讓 HTML 註釋發揮功用了。

只需要把要隱藏的文字放在這兩個標記之間 <!– 和 –>。例如:

這是一篇範例文章,有隱藏文字 <!– 嘿,你在看什麼? –>。

版本紀錄
版本 1.0

第一個釋出的版本

外掛標籤

開發者團隊

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

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

原文外掛簡介

A very useful and simple plug-in that allows you to hide a part of a post (links,image…) using standard HTML comment markers . When WordPress converts your post text into HTML, one thing it does it converts a double-hyphen to an en-dash (– which in Unicode is –). This plug-in simply changed it back if it happens to be followed by a greater than symbol. Since –> is a HTML end-comment marker, this allows HTML comments to work again.
To hide a text,just place it between those two markers . For example:
This is an example of a post with hidden text.
Version History
Version 1.0

First release

延伸相關外掛

文章
Filter
Apply Filters
Mastodon