Home Forums Front-end Issues Hide fields on front end except for admins


Hide fields on front end except for admins

  • Is there a (fairly) simple solution to hiding fields on the front of the website based on a role?

    I have a client with a car company and he wants to hide certain information about those cars on the front end unless an admin is logged in.

    The caveat here is that I have to use ACF 4.1x – 5 crashes (terribly so) when using 5 and the plugin that displays the cars. (Progression Car Dealer.)

    I think it should be simple (check the role and don’t show the fields if it’s anyone but an admin) but I can’t seem to make it work. I am not great with PHP.

    Any help is appreciated.


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.