2 different templates for the same post
-
I have a post which is inside 2 categories, and those categories have different templates.
When I click on this post, I need to view it in one template if I came from category 1 page, and in another template if I came from category 2 page.
Is there any way todo that?
I figured that maybe the only way is to get which page the user was before and use it as a variable. But I have no idea how to write a code for that, or if it’s even possible?
Anybody know how to do it or has a different solution for the problem?
Thanks you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘2 different templates for the same post’ is closed to new replies.