---
title: Include Terms from Custom Taxonomy in Permalinks of Custom Post Types
date: 2012-06-14T06:01:50+00:00
modified: 2012-08-23T10:31:56+00:00
permalink: https://kaspars.net/blog/include-taxonomy-terms-in-permalinks-custom-post-types
post_type: post
author:
  name: Kaspars
  avatar: https://reverse.kaspars.net/gravatar/avatar/92bfcd3a8c3a21a033a6484d32c25a40b113ec6891f674336081513d5c98ef76?s=96&d=mm&r=g
post_tag:
  - How to
  - Snippet
post_format:
  - Link
category:
  - WordPress
---

# Include Terms from Custom Taxonomy in Permalinks of Custom Post Types

Link: [Create custom URLs (permalinks and permastructures) for custom post types which include all parent terms from a custom taxonomy.](https://gist.github.com/2924900)

Such as `http://example.com/recipes/breakfast,brunch/boiled-eggs/` where `recipes` is the custom post type, `breakfast` and `brunch` are terms of a custom taxonomy, which are applied to the `boiled-eggs` post.