[WordPress] 外掛分享: APSearch — Arabic & Persian Search

首頁外掛目錄 › APSearch — Arabic & Persian Search
WordPress 外掛 APSearch — Arabic & Persian Search 的封面圖片
全新外掛
安裝啟用
尚無評分
剛更新
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v0.1.0 上架:2026-08-30

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「APSearch — Arabic & Persian Search」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

WordPress search fails on Arabic-script languages, and it fails silently. A visitor searches کتابها and gets nothing, because the post says کتاب‌ها with a zero-width non-joiner. Someone types كتاب with an Arabic Kaf while the content uses the Persian ک. A product title carries diacritics; the query does not. Every one of these is a lost search, a lost reader, and in a shop, a lost sale.
This plugin fixes it by keeping a normalized copy of your searchable text and matching queries against that copy.
What it normalizes

Yeh family: ي, ى, ئ, ے, ې → ی
Kaf family: ك, ڪ → ک
Alef family: أ, إ, آ, ٱ → ا
Heh family: ة, ۀ, ہ, ھ → ه
Diacritics (harakat), Quranic marks and kashida/tatweel are ignored
Arabic-Indic (٠-٩) and Extended Arabic-Indic (۰-۹) digits become 0-9
Zero-width non-joiner (ZWNJ / نیم‌فاصله) and other invisible marks are ignored
Punctuation and repeated whitespace are ignored

Works with

The built-in search form and search results page
Any theme or block that runs a WP_Query search
WooCommerce product search (enable the product post type in settings)
WP-CLI: wp apsearch reindex, wp apsearch status, wp apsearch normalize "متن"

Privacy
The plugin sends nothing anywhere. It stores one normalized text field per post in your own database.

延伸相關外掛

文章
Filter
Mastodon