User Item module
Purpose and when to use
The User Item module displays a single piece of user data (e.g. name, email, avatar, profile link, membership plan, or custom/ACF field). Use it inside a User List custom loop layout to build member directories, or on a single page to show the current user’s info (e.g. “Hello, [name]”).
- User type: Current User (in loop), Logged In User (viewing visitor), or Author of the Post.
- Item type: User Meta (name, email, etc.), Profile Link, ACF field, Membership Plan, or Custom Meta.
- Profile link: Optional button style; control visibility when logged out (hide, no change, or change text/link).
- Bio / long text: Use Enable Max Word Count and Max Word Count Ending (e.g. ellipsis) to limit length.
Compatibility and performance notes
- Divi: Current Divi version with Divi Membership 2.0.x or later.
- User List: Typically used inside a User List custom loop layout; can also be used on static pages for the logged-in user or post author.
Add to page
- In the Divi Builder, add a new module and choose User Item (under Divi Membership).
- Set User Type: Current User (loop context), Logged In User, or Author of the Post.
- Set Item Type: User Meta, Profile Link, ACF Field, Membership Plan, or Custom Meta; configure the specific field or plan if required.
- Optionally set Prefix Text and Suffix Text.
- Set Visibility (all visitors vs logged-in only) and What to do when empty value? (hide or show default).
- Under Layout Options, set Make Inline, Enable Max Word Count (and ending); for Profile Link, set Profile Link as Button and Profile Link Logged Out Visibility (No Changes / Hide / Change Text with custom text and link).
- Save and preview in loop and single-user contexts.
Settings
| Setting | Type | Default | Depends On | Notes |
|---|---|---|---|---|
| User Type | select | Current User / Logged In User / Author of Post | — | Whose data to show. |
| Item Type | select | User Meta / Profile Link / ACF / Membership Plan / Custom Meta | — | What to display. |
| HTML Tag | select | — | — | Wrapper tag for the value. |
| Prefix Text | text | — | — | Text before the value. |
| Suffix Text | text | — | — | Text after the value. |
| Visibility | select | — | — | All visitors or logged-in only. |
| What to do when empty value? | select | — | — | Hide or show default when value is empty. |
| Make Inline | boolean | No | — | Display inline with other elements. |
| Enable Max Word Count | boolean | No | — | Truncate long text (e.g. bio). |
| Max Word Count | number | — | Enable Max Word Count | Maximum words. |
| Max Word Count Ending | text | — | Enable Max Word Count | Truncation indicator (e.g. …). |
| Profile Link as Button | boolean | — | Item Type: Profile Link | Show as button. |
| Profile Link Logged Out Visibility | select | No Changes / Hide / Change Text | Item Type: Profile Link | Behaviour when user not logged in. |
| Profile Link Logged Out Text / Link | text / URL | — | Change Text | Custom text and URL when logged out. |
note
When Item Type is Profile Link, additional options appear under Layout Options (button style, logged-out visibility).
Examples and common patterns
- Member card in User List: User Type = Current User, Item Type = User Meta (name), then another User Item for avatar, another for Profile Link as button.
- Greeting: User Type = Logged In User, Item Type = User Meta (display name), Prefix = "Hello, ".
- Bio snippet: Item Type = User Meta or custom bio field; Enable Max Word Count with ending "…".
Pitfalls and limits
- Privacy: Avoid displaying sensitive data (e.g. email) publicly unless intended; use visibility and empty-value behaviour.
- Profile link: If the theme or account uses a custom profile URL, ensure the profile link points to the correct page.
Related links
- User List — Loop that contains User Item modules in a custom layout.
- Account page — Member account and profile.
What's Next
- User List — Build a member directory with User Item.
- Feature Overview — Account and member management.
- Register module — Set default user role for new users.