Change URL based on categories
-
I have reached my wit’s end with this issue. I’m making a motorcycle site that will have posts with multiple categories. And what I’m trying to do is so that whenever I click a link to a single post, that URL’s post should change based on what category I’m clicking the read more button from.
For example, I have a single post named Kawasaki, and that brand offers multiple services(those are my categories), services being: moto hotels, shops, repairs. So the Kawasaki post appears on 3 different occasions. And when I enter from mysite.com/moto-hotels, I want my URL to be mysite.com/moto-hotels/kawasaki. BUT if I enter from mysite.com/shops, I want that to be reflected in my URL and breadcrumbs, meaning it shows as mysite.com/shops/kawasaki.
But for some reason I can’t seem to figure out, the URL always remains the same(same for the breadcrumbs), meaning that my post displays the same category, not changing like I’d want it based on the category(ex. when clicking from mysite.com/shops, the URL still shows as mysite.com/moto-hotels/kawasaki). I’ve tried working it out with Yoast SEO and Permalinks Manager, but to no avail, the problem probably being more complex than I would like it to.
I appreciate any help and tips that may come my way.
- You must be logged in to reply to this topic.