I have two menus locations in my WordPress self hosted Blog. Both menu locations (Header, Footer) have the same menu items Contact Us. Now, when an user click this link. It will take him to the contact us page.

But I want to know which menu item triggered to reach the page. either Header or Footer.

Is there any code or function available in WordPress itself.

  • 1
    You could add url parameter on the menu url for example ?ref=footer then process it on the contact us page to know the click was from footer link. – Sisir Dec 14 '15 at 5:50
  • Just wondering why you would want something like this. ;-) – Pieter Goosen Dec 14 '15 at 5:55
  • @Sisir, I added pages as menu. There is no such a additional option to add menu url with it. its a page. – Kvvaradha Dec 14 '15 at 5:56
  • @PieterGoosen - From the beginning. without Thinking, i added this one in both menus. Now I do want to remove one. So, I want to know which menu items get more users. So i can remove the less one. – Kvvaradha Dec 14 '15 at 5:59
  • You can not do it from UI. You will need to code it using php or js (will be an easier option). – Sisir Dec 14 '15 at 20:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.