[WordPress] 外掛分享: Lipyantar Slugs

首頁 › 外掛目錄 › Lipyantar Slugs
WordPress 外掛 Lipyantar Slugs 的封面圖片
全新外掛
安裝啟用
—
尚無評分
16 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 7.4+ v1.0.0 上架:2026-09-29

內容簡介

Lipyantar Slugs 外掛可將使用古吉拉特文或天城文撰寫的文章標題轉換為易於閱讀的拉丁字母 URL,提升分享與可讀性,無需設定即可啟用。

【主要功能】
• 自動轉換古吉拉特文與天城文為拉丁字母
• 支援文章、頁面及自訂文章類型的 URL
• 適用於分類、標籤及自訂分類術語的 URL
• 轉換上傳媒體檔案的檔名
• 無需外部服務,資料不會儲存

外掛標籤

開發者團隊

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

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

原文外掛簡介

When a post title is written in Gujarati or Devanagari, WordPress builds its URL from percent-encoded bytes. “ગુજરાતી સમાચાર” becomes %e0%aa%97%e0%ab%81%e0%aa%9c..., which is long, hard to read and awkward to share.
Lipyantar Slugs transliterates these letters into Latin while the slug is created (“lipyantar” means transliteration in Gujarati and Hindi):

ગુજરાતી સમાચાર → gujarati-samachar
નવરાત્રી ૨૦૨૬ → navratri-2026
हिंदी समाचार → hindi-samachar
प्रधानमंत्री → pradhanmantri
गणपती बाप्पा मोरया → ganpati-bappa-morya

It works for:

Post, page and custom post type slugs
Category, tag and custom taxonomy term slugs
Names of uploaded media files

Supported scripts in this version: Gujarati and Devanagari (Hindi, Marathi and other languages written in Devanagari).
The plugin has no settings. Activate it and new slugs are created in Latin.
How it works
The letters are converted by rules, not by a word list, so any word is handled. The hidden “a” of a consonant is dropped where it is not pronounced (navratri, garba), and Gujarati and Devanagari digits become 0–9. A short built-in list fixes a few common words that the rules would spell differently, such as gujarati and vadodara.
Nothing is sent to any external service and nothing is stored in the database.
Existing URLs are not changed
Only new slugs are affected. Slugs that already exist keep working, and a slug you type yourself in Latin letters is left as it is. To give an existing post a Latin slug, clear its URL slug and save the post again.
For developers
Add or change whole-word spellings with the lipyantar_slugs_exceptions filter:
add_filter( 'lipyantar_slugs_exceptions', function ( $words ) {
$words['સુરત'] = 'surat';
return $words;
} );

延伸相關外掛

文章
Filter
Mastodon