[WordPress] 外掛分享: Remove Taxonomy Base Slug

首頁外掛目錄 › Remove Taxonomy Base Slug
5,000+
安裝啟用
★★★★
4.8/5 分(23 則評價)
3032 天前
最後更新
問題解決
WordPress 3.4+ v2.1 上架:2013-07-19

內容簡介

如果您想要對您的自訂文章類型文章使用更好的固定連結,並使用自訂的固定連結,這個外掛程序可以協助您。
如果該術語的slug和文章類型相同,那麼該分類的優先級高於文章類型。
現在我來展示一些例子:
(自訂分類)
從原始連結:
site.com/taxonomy/cars
到自訂連結:
site.com/cars
(自訂分類帶有子分類)
從原始連結:
site.com/taxonomy/cars/bmw
到自訂連結:
site.com/cars/bmw
(術語slug和文章類型slug相同)
從原始連結:
(文章類型:) site.com/cars/
(分類術語:) site.com/taxonomy/cars/
(Subterm from Taxonomy:) site.com/taxonomy/cars/bmw
到自訂連結:
(文章類型:) site.com/cars/(不會顯示)
(分類術語:) site.com/cars(會顯示)
(Subterm from Taxonomy:) site.com/cars/bmw(會顯示)

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.1) 或搜尋安裝

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

原文外掛簡介

If you would like to have a little more nice permalinks to your custom post types articles with custom permalinks – this plugin can help you with this.
If the term has the same slug as the post type, then the taxonomy has the priority over the post type.
Now I will show some examples:
(Custom taxonomy:)
From:
site.com/taxonomy/cars
To:
site.com/cars
(Custom taxonomy with child taxonomies)
From:
site.com/taxonomy/cars/bmw
To:
site.com/cars/bmw
(Term slug is the same as the post type slug:)
From:
(Post Type:) site.com/cars/
(Term from Taxonomy:) site.com/taxonomy/cars/
(Subterm from Taxonomy:) site.com/taxonomy/cars/bmw
To:
(Post Type:) site.com/cars/ (will not show)
(Term from Taxonomy:) site.com/cars (will show)
(Subterm from Taxonomy:) site.com/cars/bmw (will show)

延伸相關外掛

文章
Filter
Mastodon