0

Is there a way to hide a wordpress menu item based on custom fields in the civicrm contact record?

  • Wanna expand your question a little? A wordpress menu item would not normally be associated with a specific contact record. If you're auto-generating menu items from contact records, then that code might be able to include a class based on the value of a custom field, and then you could use some css or javascript. – Alan Dixon Dec 10 '19 at 15:41
  • Or are you hiding the menu item based on the custom field value of the logged in contact? A use-case description would help. – Alan Dixon Dec 10 '19 at 15:55
  • Of course. My idea was, based on the custom field value of a logged in contact to show or hide a menu item. The reason behind this was wanting to provide menu items with links to surveys, that will disappear once completed. I have decided to send contacts links to these instead, using the information here: aghstrategies.com/content/… – Brad Dec 10 '19 at 23:01

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.