Limitation with posts that are member of many taxonomies
EDIT:
I have abandoned the notion of using taxonomy as a tool to generate navigation structure. It constitutes too large a rewrite/expansion of the wordpress routing system.
ORIGINAL ISSUE: My main reason for using this addons features are to implement a multilevel menu system based on taxonomies.
The meny hierarchy is working fine except for posts that are a member of of multiple taxonomies.
I think maybe this might be very hard to fix - can a post have multiple permalinks ?
eg: a post of a CPT is a member of taxonomy-1 and taxonomy-2 when created. The permalink associated with the post is from taxonomy-1.
When I make a menu with this information i get the post appearing in both taxonomy lists as expected, but both permalinks are the same. This means that the user gets unexpected behavior.
If I am to use this taxonomy method to generate nice permalinks and a dynamic menu I need either:
- Posts can have multiple permalinks.
- Posts can only be a member of 1 taxonomy.
menu: 'domain/custom-post-type/taxonomy-1' anchor: 'domain/custom-post-type/taxonomy-1/post-name' ... menu: 'domain/custom-post-type/taxonomy-2' anchor: 'domain/custom-post-type/taxonomy-1/post-name' ...
I will think some more about this... Maybe someone has any ideas?
Additional problems There is an added problem with deleting all posts that only have reference to taxonomy-2 because taxonomy-2 still exists as it has refrerences to it. This would be solved if multiple permalinks.
There is also a problem with preview draft and future publishing state. There is alot of code to go through to get that to work - although its almost done for 1 permalink : ) I guess the permalink array is the harder problem.
It is the ideal if I can.
But, if remove taxonomy's slug from permalink , Conflicts in the taxonomy's term link and post link.
eg:
- domain/custom-post-type/parent-term/child-term
- domain/custom-post-type/parent-term/post-name
Even was able to if, need the generation of a large amount of custom rewrite rules. And, there is a need to manage the priority of post_type rules and taxonomy rules on the part of the User.
For multiple permalink, I think on the difficult WordPress of structure.
Add a rewrite rule it may be possible to allow access, but become redundant content. I think it's a problem to be solved in Redirect.
Removed by Espen
Removed by Espen.