Support

Account

Home Forums ACF PRO Using User Relationship Field to create User Specific Content Reply To: Using User Relationship Field to create User Specific Content

  • Thanks Jonathan, now I’m using the following. It allows logged in users to see but still every logged in user rather than the specified in associated_users. Any ideas?

    <?php if ( is_user_logged_in() ) { $userID = (int)get_field('associated_users'); $current_user = wp_get_current_user(); if ($current_user->$userID == 0 ) { ?>