[WordPress] 外掛分享: Post types / taxonomies intersections

首頁外掛目錄 › Post types / taxonomies intersections
10+
安裝啟用
尚無評分
3419 天前
最後更新
問題解決
WordPress 3.1+ v2.1 上架:2011-06-29

內容簡介

允許創建文章類型和分類法之間的交集,使用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="轉到我的頁面

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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 : 延伸相關外掛

文章
Filter
Apply Filters
Mastodon