The Conditional ACF Content add-on lets you create dynamic content tailored to the values of custom fields. Deliver highly personalized user experiences by leveraging the rich data stored in your ACF fields.
What Does the ACF Conditions Integration Do?
Once activated, the Conditional ACF Content add-on integrates seamlessly with If-So, adding an “ACF condition” to the list of available conditions. This feature allows specific content to be displayed to users based on the value of an ACF field. Whether it’s a user’s location, role, or custom input, you can use this add-on to provide targeted messaging with precision.
Supported ACF Field Types
The Conditional ACF Content add-on supports a variety of field types available in ACF. Below is a list of ACF field types. (Compatibility with the add-on will be updated as needed):
- Text
- Text Area
- Number
- URL
- Password
- Select
- Checkbox
- Radio Button
- True/False
- Link
- Page Link
How to Set Up Conditional ACF Content
Follow these steps to configure dynamic content using If-So and the Conditional ACF Content add-on:
- Activate the Add-On – Ensure the Conditional ACF Content add-on is installed and activated on your WordPress site, in addition to the core If-So plugin.
- Create an ACF Field – Navigate to the ACF plugin in your WordPress dashboard.
- Create a new field group or edit an existing one.
- Add the field(s) you wish to use for your condition (e.g., Text, Checkbox, Date Picker).
- Access If-So Conditions – Create an If-So trigger (or, if you are using Elementor or Gutenberg, click the relevant element and click the If-So section)
- Select the ACF Condition – In the condition dropdown menu, choose “ACF condition.”
- Set the ACF Field and Value
- Specify the ACF field you want to use.
- Define the value or range of values that will trigger the dynamic content. For example, if the ACF field is “Pet” and the value is “Dog,” set the value “Dog” as the field’s value.
- Refer to the relevant section below for details on setting values for different field types.
- Add Dynamic Content and Apply Shortcode
- Add the content to be displayed when the condition is met.
- Pate the trigger’s shortcode into the desired location on your page or post.
How to set field values when configuring an ACF condition
Text ; Text Area ; Number ; Email ; URL ; Password: Use the exact value.
Select: Type in the selected value, unless the “Return value” is set to “Both (Array)” in the field settings—if so, it will not work.
Checkbox: Set the text value of the selected option. However, if multiple options are selected or the “Return value” is set to “Both (Array),” it will not work.
Radio Button: Set the text value of the selected option unless the “Return value” is set to “Both (Array),” in which case it will not work.
True/False: Use the word “true” or “false” (capitalization does not matter).
Link: Use the link URL unless the “Return value” is set to “Link array” (the default setting).
Page Link: Use the link URL. However, if “Select Multiple” is enabled in the field settings, it will not work.
Use Cases
The Conditional ACF Content add-on offers a wide range of applications for creating dynamic content. Examples include:
- Membership Sites: Display different content based on membership levels stored in an ACF field.
- E-Commerce: Show personalized product recommendations based on user preferences.
- Event Websites: Highlight upcoming events tailored to a user’s location or interests.
- Portfolio Sites: Showcase relevant projects based on client categories or tags.
Elevate Your Content Strategy
The Conditional ACF Content add-on provides a seamless way to create personalized and targeted user experiences. By combining If-So’s dynamic content capabilities with the flexibility of ACF conditions and shortcodes, you can craft unique and meaningful interactions that resonate with your audience. Activate the add-on today and discover the possibilities.