gdtt_get_intersection_link($post_type, $taxonomy, $term)

  • $post_types: custom post type name.
  • $taxonomy: name for the taxonomy term belongs to.
  • $term: term name, id or object.

Get URL for the archive intersection of post type and taxonomy term. Make sure that taxonomy belongs to specified post type.

If you have post type named ‘movie’, taxonomy named ‘genre’ and term named ‘action’, to get link for it use the function:

[php]$url = gdtt_get_intersection_link(‘movie’, ‘genre’, ‘action’);[/php]

You will get URL like this:


Leave a Reply