內容簡介
Slug-Free Permalinks 外掛透過使用項目的 ID 來簡化網址設計,減少在發布流程中對於每篇文章、分類或語言版本的 slug 決策。此外掛專注於改變網址結構,並不增加內容功能或前端 UI,適合新網站或仍在定義網址政策的專案。
【主要功能】
• 使用項目 ID 生成網址
• 支援選擇性改變網址格式
• 自動刷新重寫規則
• 可選擇重定向舊的 slug 網址
• 保留 Polylang 語言網址
外掛標籤
開發者團隊
② 後台搜尋「Slug-Free Permalinks – Simple ID-Based URLs」→ 直接安裝(推薦)
原文外掛簡介
Choosing a new slug for every post, term, or language version is extra URL design work. Slug-Free Permalinks lets you move that work out of the publishing flow by using an item’s ID in the permalink instead.
Select the public post types and taxonomies you want to change, choose a URL format, and keep the rest of your site on its existing permalink structure. The plugin is intentionally focused: it changes URL structure without adding content features or front-end UI.
Why use ID-based permalinks?
Reduce the number of slug decisions and maintenance steps as your content grows.
Keep the URL pattern consistent even when titles, translations, or editorial wording change.
Apply the change selectively instead of switching every post type at once.
You can choose between:
/post/123/
/post-123/
The plugin only affects the post types and taxonomies you enable in the settings screen.
What you can configure:
Select individual public post types
Select individual public taxonomies
Use each selected type’s registered rewrite slug for the ID-based route
Choose slash or hyphen based ID permalink format
Optionally redirect legacy slug URLs to the current ID-based permalink when WordPress can resolve the request
Preserve Polylang language URLs using the language home URLs Polylang actually exposes
Flush rewrite rules automatically when settings change
A focused, predictable change
Legacy slug redirects are optional and only run when WordPress can already resolve the request. Slug-Free Permalinks does not guess at every 404, so it avoids turning an ID-based permalink plugin into a site-wide slug lookup system.
The plugin is intended for new sites, structured-content sites, or projects that are still defining a permalink policy.
If your site already has many established slug-based URLs, review existing inbound links, search traffic, social shares, and editorial workflow assumptions before enabling it.
Plugin page (English)
Plugin page (Japanese)
Development repository
Slug-Free Permalinks is completely free to use. If you find it useful, you can support the project on GitHub Sponsors.
Known limitations:
The settings screen rejects selected post types or taxonomies with identical registered rewrite slugs.
Only path prefixes exposed by Polylang language home URLs are registered as prefixed ID routes; arbitrary prefixes are not accepted.
