BACK TO DIRECTORY

Post types / taxonomies intersections

by benjaminniess

0.0
(0 ratings)

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

Plugin Details

Active Installs
10
Total Downloads
3,375
Version
2.1
Requires WP
3.1
Requires PHP
Tested Up To
4.7.35
Added
2011-06-30
Last Updated
2016-11-07 2:04pm GMT

Ratings

5
0
4
0
3
0
2
0
1
0