Worked on one website, but not another
-
I tried hiding a profile field, created by ACF, on the author archive pages, if it was empty. I used:
function_exists(‘get_field’) && get_field(‘linkedin_profile_url’) && get_field(‘linkedin_profile_url’) !== ”Worked great on one website. It would show the icon/link if the profile field had anything in it and would hide it if it didn’t. I applied the same functionality to the page I supplied, and now the icons won’t show regardless of whether or not the profile fields contain anything. In the example I gave you, the Facebook icon is showing because I took the code out of the Facebook section.
Any ideas?
The page I need help with: [log in to see the link]
- The topic ‘Worked on one website, but not another’ is closed to new replies.