Skip to content

Instantly share code, notes, and snippets.

@Flaschenzug
Flaschenzug / custom-post-taxonomy-permalinks.php
Created April 8, 2021 14:49 — forked from kasparsd/custom-post-taxonomy-permalinks.php
Create permalink structure URLs for custom post types that include all parent terms from a custom taxonomy
<?php
/*
Term Archive Pages:
- http://example.com/recipes/dinner/
- http://example.com/recipes/breakfast,brunch/
Single Recipe Pages:
- http://example.com/recipes/dinner/soup-title/