Post types / taxonomies intersections
v2.1benjaminniess · 2011年6月30日 上架
Allow to create intersections between a post type and a taxonomy with url such as :
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 3,475
- 最近更新
- 2016年11月7日
需要 WordPress 3.1+已测试到 4.7.40
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 : <a href="Go to my page