• Hi,

    Here’s my setting:

    With ACF I created a custom post type called “course”.

    Within it, I created a custom field called enrolled_users (it’s a Users field, bidirectional with custom field related_courses)

    I created a custom field called related_courses, with the display condition “User role is equal to all”. This field is a Relationship field, bidirectional with custom field enrolled_users.

    Now, in the course page I have a container called “Course material”. I’d like to show that container only to users that are listed in the “enrolled_users” field (and at the same time to all the users that have the current course in their “related_courses” field).

    I tried by setting:

    • Dynamic Tag: User Info > User Meta > related_courses
    • Condition: Contains
    • Conditional Value: Post ID

    but that doesn’t work.

    How can I do it?

The topic ‘Show container only to selected users’ is closed to new replies.