Home Forums General Issues Show/Hide content based on user role


Show/Hide content based on user role

  • Hi,

    I’m using the all in one event calendar from

    I want to add a few fields to an event which are only visible to certain user roles (editors) who are logged in to the site.

    Is this possible with ACF? How would I go about it?

    Many thanks!


  • Answered my own question!

    if ( is_user_logged_in() ) {
    	echo 'Welcome, registered user!';
    } else {
    	echo 'Welcome, visitor!';
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Show/Hide content based on user role’ is closed to new replies.