內容簡介
允許創建文章類型和分類法之間的交集,使用URL如下:
mywebsite.com/mypost-type/mytaxo/my-term
允許使用以下模板文件:
archive-posttype-taxo-term.php
archive-posttype-taxo.php
archive-posttype.php
archive.php
index.php
包含一個小工具,列出與文章類型相關的特定分類法的所有術語
使用方法
參數:
$post_type(字符串):您的文章類型的別名
$taxonomy(字符串):您的文章分類法的別名
$term(字符串):分類法術語
或 get_the_intersection_link($post_type,$taxonomy,$term); ?>(如果您不希望該函數發出鏈接)
示例:<a href="轉到我的頁面
外掛標籤
開發者團隊
② 後台搜尋「Post types / taxonomies intersections」→ 直接安裝(推薦)
原文外掛簡介
Allow to create intersections between a post type and a taxonomy with url such as :
mywebsite.com/mypost-type/mytaxo/my-term
Allow to use template files such as :
archive-posttype-taxo-term.php
archive-posttype-taxo.php
archive-posttype.php
archive.php
index.php
Contain a widget that list all terms of a specific taxonomy linked to a post type
Usage
Parameters :
$post_type (string) : The slug of your post type
$taxonomy (string) : The slug of your post taxonomy
$term (string) : The taxonomy term
or get_the_intersection_link( $post_type, $taxonomy, $term ); ?> (if you don’t want the function to echo the link)
Example : 延伸相關外掛
