Skip to main content

User Fields

About This Article

This article covers built-in WordPress dynamic data FIELDS that are automatically available in Builderius without custom queries. All fields shown work immediately when you add them to elements.

Understand the Tables

Table Columns

Dynamic Data Tag - The tag automatically added when you select from the Dynamic Data dropdown, using square bracket syntax: [[wp.field_name]]

Description - What content this tag will display on your website

Type - What kind of data this field returns

Data Types Explained

String - Text content like "John Smith" or "[email protected]"

Int - Whole numbers like user ID 142

Array - Multiple items like user roles ["editor", "author"]

How to Use This Data

Click the Dynamic Data Icon available on each Builderius element. Search for what you want and add it.

User template availability - All data shown works when users are logged in or on user profile templates

User Scope

Data about the currently logged-in user or user being viewed. Available when viewing user profile templates or when users are authenticated - includes user information, roles, capabilities, and custom user fields.

Built-in Data Tags (Direct Use)

These fields work immediately in user template elements - no setup required.

Current User Information

Dynamic Data TagDescriptionType
[[wp.current_user.ID]]Current user IDInt
[[wp.current_user.user_login]]Current user usernameString
[[wp.current_user.user_email]]Current user emailString
[[wp.current_user.display_name]]Current user display nameString
[[wp.current_user.first_name]]Current user first nameString
[[wp.current_user.last_name]]Current user last nameString
[[wp.current_user.user_url]]Current user website URLString
[[wp.current_user.description]]Current user bio/descriptionString
[[wp.current_user.avatar_url]]Current user avatar image URLString
[[wp.current_user.roles]]Current user rolesArray

User Meta & Custom Fields

Dynamic Data TagDescriptionType
[[wp.current_user.meta_field__field_name]]User meta field (replace [field_name] with actual meta key)Mixed

ACF User Fields (Site-Specific)

Dynamic Data TagDescriptionType
[[wp.current_user.acf_field__[field_name]]]ACF user field (replace [field_name] with your ACF field name)Mixed

MetaBox User Fields (Site-Specific)

Dynamic Data TagDescriptionType
[[wp.current_user.mb_field__[field_name]]]MetaBox user field (replace [field_name] with your MetaBox field name)Mixed

Usage Examples

User Profile Display:

<div class="user-profile">
<header class="profile-header">
<img src="[[wp.current_user.avatar_url]]" alt="[[wp.current_user.display_name]]">
<div class="profile-info">
<h1>[[wp.current_user.display_name]]</h1>
<p>@[[wp.current_user.user_login]]</p>
<p>[[wp.current_user.first_name]] [[wp.current_user.last_name]]</p>
</div>
</header>

<div class="profile-details">
<p>[[wp.current_user.description]]</p>
<p>Website: <a href="[[wp.current_user.user_url]]">[[wp.current_user.user_url]]</a></p>
<p>Email: [[wp.current_user.user_email]]</p>

<!-- Custom fields -->
<p>Location: [[wp.current_user.acf_field__location]]</p>
<p>Job Title: [[wp.current_user.acf_field__job_title]]</p>
</div>
</div>