How to customize Category and Tag URL on Post?
-
I made filter on post archives that shows only posts that match specified criteria in URL. So filter expression is in URL. That works fine in post archives of all kind.
Problem I have is that when post is displayed and categories and tags this posts is attached to are listed but URLs of categories and tags are not containing specified filter so if user click on category or tag he gets all posts in that category or tag, not filtered.
I spend lot of time searching for a solution. Basically, what I want is that filter expression on posts archive be reflected in URLs of post categories and tags displayed within that post archive.Can this be done?
In code I do have all data about expression that should be applied to URL but I cannot find a way how to intercept and change url for each post category and tag before they are displayed.
- The topic ‘How to customize Category and Tag URL on Post?’ is closed to new replies.