I have a WordPress installation with two main pages (“Home1” and “Home2”), each one using his own template page and his own menu style and colors.
The problem here is that now I want to publish some news in the sidebar using simple posts and I want to check in single.php if the template is loaded before clicking on the sidebar post link in “Home1” or if the click was in “Home2”. The menu is different in each template pages, and it has to be preserved when clicking on sidebar to read a post.
Do you know any solution for this problem?
I mean something like a “referral_template_page()” that could be used to know whick template page was browsing the user when he clicked on a post permalink.
Thank you very much,
- The topic ‘Check which URL brought the visit to a single post’ is closed to new replies.