[WordPress] 外掛分享: Search Exclude HTML Tags

首頁外掛目錄 › Search Exclude HTML Tags
30+
安裝啟用
★★★★★
5/5 分(1 則評價)
5243 天前
最後更新
問題解決
WordPress 3.0+ v1.0 上架:2011-12-03

內容簡介

這個外掛讓 WordPress 內建搜尋不會搜尋文章內的 HTML 標籤。

預設 WordPress 內建搜尋會將文章內的 HTML 標籤當成搜尋內容,但這個行為常常會得到意外的搜尋結果。例如,使用關鍵字「strong」搜尋,就會回傳所有帶有 <strong> 標籤的文章;使用關鍵字「title」就會回傳所有帶有 title 屬性的 HTML 標籤(像是透過文章編輯器插入的圖片 <img> 標籤)的文章…等等。

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin makes the WordPress built-in search ignore HTML tags in post content.
By default, the WordPress built-in search considers HTML tags in post content to be searchable content. This behaviour often yields unexpected results. For example, a search for the keyword “strong” returns posts with any tags in them, “title” returns posts with any HTML tags that have a title attribute (such as all the tags that you insert via the post editor media buttons)… and so on.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon