How to Display ACF Fields with Divi Dynamic Content in Divi Ajax Filter

Want to display ACF fields in your Divi Ajax Filter results without using Divi Machine? You’re in the right place! Sometimes, all you need is to show some extra data in your loop, and using Advanced Custom Fields (ACF) can make it happen without the need for additional plugins. How? With Divi Dynamic Content of course!

Let’s break it down step by step so you can enhance your filter results and give your users a richer experience.

Step 1: Ensure You Have ACF and Divi Ajax Filters Installed

Before diving in, make sure you have the following installed and activated:

  • Advanced Custom Fields (ACF) – to create custom fields.
  • Divi Ajax Filters – to filter any post types and custom fields dynamically.

If you haven’t installed them yet, head to Plugins > Add New, search for them, and activate them. Keeping these plugins updated is also crucial to ensure compatibility with the latest Divi and WordPress versions.


Step 2: Create Your ACF Fields

ACF Field Group for Team Members

  1. Go to ACF > Field Groups > Add New.
  2. Create a new field group and add the necessary fields (e.g., Age, Job Title, Twitter Handle, Bio, Rating, or any relevant custom information).
  3. Assign the field group to the relevant post type (e.g., team members, products, testimonials, or custom post types).
  4. Save the field group and note down the Field Name (slug) for each field, as we will use them later.

ACF allows you to create various field types, including text, images, links, and even repeater fields for more advanced layouts.


Step 3: Edit Your Divi Loop Layout

Divi Ajax Filter loop layout for Team Members

To modify your loop layout and incorporate your ACF fields:

  1. Navigate to Divi > Divi Library.
  2. Locate your existing loop template or create a new one from scratch.
  3. Open the Loop Layout in the Divi Builder.
  4. Add a Text Module where you want the ACF field to appear.

Next, we need to use Divi Dynamic Content to add the ACF field in our loop.


Step 4: Use Divi Dynamic Content to Add ACF Fields

Activate Divi Dynamic Data on a Divi Text Module

  1. Inside the Text Module, click on the Dynamic Content icon.
  2. Scroll down and select Manual Custom Field Name.
  3. Enter the slug of your ACF field (e.g., age, job_title, twitter_handle, bio).
  4. (Optional) Add before/after text (e.g., “Age: ” before the value, “Follow on Twitter: ” before a Twitter handle).
  5. Enable Raw HTML if your field contains links or formatted text (useful for social media links or profile URLs).
  6. Click Save & Update.
Divi Dynamic Content Options

Pro Tip: You can also use Divi’s Dynamic Content feature to pull images, URLs, or even buttons dynamically if your ACF fields contain such data.


Step 5: Test Your Loop on the Frontend

Now, let’s verify if everything is working correctly:

  1. Open your filtered results page.
  2. Check if the ACF fields appear correctly in the loop.
  3. Modify an ACF field for a post and see if the change reflects immediately.
  4. If any fields are missing, double-check your ACF settings and ensure they are linked to the correct post type.
Filtered Custom Posts using ACF Fields

If the fields are not displaying correctly, verify:

  • The slug name matches the custom field name.
  • The post type has ACF fields assigned.
  • The cache has been cleared if you’re using a caching plugin.

Bonus: Style Your ACF Fields

Want to make the ACF fields blend seamlessly into your design?

  • Use Divi’s built-in design settings to adjust text size, color, and spacing.
  • Apply CSS classes for custom styling and greater flexibility.
  • Wrap links inside <a> tags if dealing with URLs (enable Raw HTML in the Dynamic Data settings).
  • Use columns and rows in your Divi Builder to create structured layouts for more complex data.

You can also add custom CSS to ensure uniform styling across different modules that display ACF fields. For example, to style a job title field:

.custom-job-title {
  font-weight: bold;
  color: #0073aa;
}

Assign this class to the text module displaying the job title for a polished look.


That’s It! You’re Now a Pro at Displaying ACF Fields in Divi Ajax Filter

You’ve successfully added ACF fields to your Divi filter results without using Divi Machine! This method allows you to customize your loops and make filtered content more informative and visually engaging.

If you found this tutorial helpful, drop a comment below or check out our Divi Engine User Group on Facebook for more advanced tips, troubleshooting, and expert insights.

Happy designing! 🚀

Tell Us What You Think!

0 Comments

Submit a Comment

Explore more from Divi Engine

Divi Form Builder

Divi Form Builder

From simple contact forms to complex frontend post or product creation, Divi Form Builder has you covered.

Divi Form Builder
Find out more
Divi Machine

Divi Machine

Build complex websites that displays dynamic fields you can filter, search and so much more with the Divi Builder.      

Divi Machine
Find out more
Divi BodyCommerce

Divi BodyCommerce

A versatile toolkit for developers using Divi and WooCommerce together, designed to boost your e-commerce site and achieve greater conversion rates.    

Divi BodyCommerce
Find out more
Divi Handoff

Divi Handoff

Let clients update content without touching the Divi Builder. Design layouts once, connect them to Flexible Content fields, and give editors simple forms for text, images, and sections.

Divi Handoff
Find out more
Divi Loop Extender

Divi Loop Extender

Unlock the Full Power of Divi 5 Loop Builder Add advanced sorting, filtering, and relationship logic right inside the Visual Builder.

Divi Loop Extender
Find out more
Divi Membership

Divi Membership

Monetize your Divi websites by transforming them into membership sites with seamless subscription management, user-friendly interfaces, and customizable membership tiers.

Divi Membership
Find out more
Divi Machine Accounts

Divi Machine Accounts

Build an account area for your customers to edit their details, access wishlist, submitted posts and more. *Note: Requires Divi Machine installed and active

Divi Machine Accounts
Find out more
Divi Ajax Filter

Divi Ajax Filter

Filter WooCommerce, Posts & Custom Posts without reloading the page.    

Divi Ajax Filter
Find out more
Divi Mobile

Divi Mobile

Divi Mobile helps you create beautiful looking mobile menus without having to code.

Divi Mobile
Find out more
Divi Nitro

Divi Nitro

Give your Divi website that extra boost of speed with our Divi Nitro plugin to enhance your customer's experience.

Divi Nitro
Find out more
Divi Protect

Divi Protect

Password protect the content of your Divi website with our Divi Protect plugin. Keep unwanted eyes out!

Divi Protect
Find out more
Divi Mega Menu

Divi Mega Menu

Create stunning, responsive, and content-rich mega menus using the Divi Builder you already know. No coding required.  

Divi Mega Menu
Find out more