ACF User Field Value

Show or hide blocks based on ACF field values stored on WordPress user profiles.

Example screenshot of hte ACF User Field Value from the Condition Builder

Requirements

  • Advanced Custom Fields (ACF) plugin active
  • Conditional Blocks Pro license
  • ACF field groups with user location rules
Example user meta on the WordPress edit user page

Setup

1. Create ACF User Fields

  1. Go to Custom Fields > Field Groups
  2. Create or edit a field group
  3. Add your fields (text, select, checkbox, etc.)
  4. Set the location rule to: User Formis equal toAll

2. Configure the Condition

  1. Select a block and open the Conditions panel
  2. Add the ACF User Field Value condition
  3. Configure the fields:
FieldDescription
User SourceCurrent Logged-in User or Post Author
ACF FieldSelect from user profile fields (includes repeater and group subfields)
OperatorHow to compare the value (see below)
Field ValueThe value to compare against (for relevant operators)

Operators

OperatorDescription
Has any valueField is not empty
No valueField is empty
Equal toExact match (case-sensitive)
Not equal toDoes not match
ContainsValue includes the text
Does not containValue excludes the text
Greater thanNumeric comparison
Less thanNumeric comparison
Greater than or equal toNumeric comparison
Less than or equal toNumeric comparison

Examples

Use CaseUser SourceFieldOperatorValue
Premium member contentCurrent Usermembership_levelEqual topremium
Show author bio when filledPost AuthorbiographyHas any value
Content for tech enthusiastsCurrent UserinterestsContainsTechnology
Hide from free usersCurrent Usermembership_levelNot equal tofree
Users with 10+ purchasesCurrent Userpurchase_countGreater than10
Repeater: has WordPress skillCurrent Userskills.skill_nameContainsWordPress
Group: profile completeCurrent Userprofile_details_bioHas any value

Repeater Fields

For repeater subfields, the field name uses dot notation: repeater_name.subfield_name

The condition checks if any row in the repeater matches. For example, if a user has multiple skills and one contains “WordPress”, the condition matches.

Group Fields

For group subfields, the field name uses underscore notation: group_name_subfield_name

Supported Field Types

  • Text, Textarea, Number, Email, URL
  • Select, Checkbox, Radio
  • True/False, Date
  • Repeater subfields
  • Group subfields

Not supported: File, Image, Gallery fields

Troubleshooting

Field not in dropdown

  • Check the field group location is set to “User Form”
  • Make sure ACF is active
  • Verify the field group is published

Condition always false

  • Current User: User must be logged in
  • Post Author: Must be on a single post/page with an author
  • Check exact value match (comparisons are case-sensitive)
  • Verify the user actually has a value saved for that field

Related Conditions

  • ACF Field Value — Check ACF fields on posts
  • User Role — Check user roles
  • User Status — Check if logged in

Was this page helpful?