內容簡介
如果您想要對您的自訂文章類型文章使用更好的固定連結,並使用自訂的固定連結,這個外掛程序可以協助您。
如果該術語的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(會顯示)
外掛標籤
開發者團隊
原文外掛簡介
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)
