This members-only tutorial provides the steps to display the sub fields of a repeater field set to appear on user profile pages in a custom Welcome Page for logged in users when using Oxygen .
ACF field group
Repeater populated on a user profile page
Custom user Welcome page showing the filled ACF Repeater data
Step 1
Install and activate ACF Pro .
Step 2
Custom Fields → Add New.
Create a new field group having a Repeater field with your desired sub fields.
Choose a appropriate location (under User
) where this group should appear.
Sample:
Step 3
Get the field group populated either by the users or you, as the admin.
The fields should be visible both at the time of creating new users as well as editing existing ones.
Step 4
Let us add a code snippet to redirect admins to the dashboard and other users to /welcome when they log in.
Install and activate Code Snippets plugin.
Go to Snippets > Add New.
Title: Redirect admins to the dashboard and other users to /welcome
Code: