[WordPress] 外掛分享: Remove Taxonomy Slug

首頁外掛目錄 › Remove Taxonomy Slug
400+
安裝啟用
★★★★★
5/5 分(1 則評價)
25 天前
最後更新
問題解決
WordPress 3.0.1+ v1.0.3 上架:2021-10-13

內容簡介

這個外掛可以讓您擁有乾淨的 SEO 友善網址。您可以透過幾個點擊來移除分類法(taxonomy)別名並取得 SEO 友善的網址。

此外掛可以透過進入外掛設定來移除自訂分類法別名。

您可以進入管理員登入後,檢查管理選單 > 移除分類法別名設定,然後點擊它,您將能夠看到所有現有的分類法別名,只需要選擇其中一個,然後儲存設定即可。

針對開發人員,我提供了一個篩選器,您可以直接使用該篩選器,在陣列中添加要移除的分類法別名。

篩選器名稱為 remove_taxonmy_slug_filter。
add_filter( 'remove_taxonmy_slug_filter',function ( $slug_list ){
return $slug_list
} );

在上述陣列中,您需要確保以原來的別名名稱傳遞別名。

它與以下函數搭配使用,您只需要確保已使用以下函數之一來使用分類法連結。

term_link
get_category_link
get_term_link
category_link

此外掛也與自訂文章類型 UI 兼容。

除此之外,您可以建立工單以針對您的查詢,或是通過電子郵件聯繫我以獲得快速問答,我的電子郵件是 [email protected]

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin allows you to create SEO-friendly URLs by removing taxonomy slugs, making URLs cleaner and more attractive to search engines. It’s simple to use, even for those with minimal technical knowledge.
With this plugin, you can:
– Remove slugs from custom taxonomies by adjusting plugin settings.
– Access the settings in your WordPress admin dashboard under Remove Taxonomy Slug Settings.
– Select the taxonomies you wish to modify and save your preferences.
Developer Note
For advanced customization, a filter is provided:
add_filter('remove_taxonomy_slug_filter', function($slug_list) {
return $slug_list;
});
Ensure the slug names are accurate in the array.
Compatible functions:
– term_link
– get_category_link
– get_term_link
– category_link
This plugin also works seamlessly with Custom Post Type UI.
For support, contact me at [email protected].
If you need to remove post type slugs, check out my other plugin: Remove Post Type Slug

延伸相關外掛

文章
Filter
Mastodon