Multiple permalinks for a single post with multiple taxonomies
-
Hi,
I created 1 custom post type (projects) with 2 taxonomies (clients / fields) to filter the results (like categories).
At the end, it should be like this where project_name is the same custom post displayed in single-projects.php :
my-site/projects/
my-site/projects/project_name
my-site/projects/fields/
my-site/projects/fields/project_name
my-site/projects/clients/
my-site/projects/clients/project_nameLike this, based on the re-written url, i’ll be able to easily display the current term selected and navigate post per post (in single-projects.php) within this specific term .
I’m using an archive to display all custom posts (archive-projects.php). The custom posts permalinks are like this : my-site/projects/custom_post_name.
I’ve got a taxonomy template (taxonomy.php) to display custom posts related to a term and it’s working well.
So far so good.
But permalinks are still like this : my-site/projects/custom_post_name. And i’d like to give them a different permalink based on the current taxonomy and get a different URL as written above.I already found this and it’s working well in a standard case (a blog with few categories for example), but i got stuck when i’m trying to adapt to taxonomies. I can create the new url but can’t give it to the permalink post.
Any help or advice?
thanks
- The topic ‘Multiple permalinks for a single post with multiple taxonomies’ is closed to new replies.