Skip to main content

Quick start guide

Divi 5 only

This quick start uses Divi 5 (Archive Loop or Loop Builder). Divi 4 would be the same as the archive loop method but the module would look slightly different.

Overview

Create a simple filter for WordPress posts that lets visitors search by text and refine by category. Choose one of two methods to display results: Archive Loop or Divi Loop Builder.

Jump to a method

Prerequisites

  • Divi Ajax Filter installed, activated, and licensed.
  • Divi Theme or Divi Builder 5.0.0 or newer.
  • Published WordPress posts with categories and featured images.
  • Basic familiarity with the Divi 5 Visual Builder interface.

Method 1: Archive Loop

Use the Archive Loop module to display the filtered posts.

Add the Archive Loop module

Step 1: Add an Archive Loop for results

  1. Create or open a page in the Divi 5 Visual Builder.
  2. Add a Row with two columns—one for filters and one for results.
  3. In the results column, insert the Archive Loop module.
  4. In Archive Loop settings, set the Post Type to be Posts or any CPT you want to display or filter.
  5. Set Posts per page, Order, and Order by to match how you want the list to appear.

Configure the Archive Loop for Posts

Step 2: Add the Filter Posts module

  1. In the filter column, add the Filter Posts module.
  2. Open Filter Posts settings.
  3. Set Filter Post Type to Post so the filter targets the same content as the Archive Loop.
  4. Set Filter Update Method to match how visitors should apply filters:
    • On button click — update results when the visitor clicks Filter or Search.
    • On change — update results as soon as a filter value changes.

Add and configure the Filter

Step 3: Add text and category filters

  1. In Filter Posts, add two filter items:

Search text: provides a free-text search across your posts & post content.

Add Search filter items

Category: displays a list of categories based on post type Categories.

Add Category filter items

  1. Leave other options at defaults for now.
  2. Save the module.

Configured filter posts module

Step 4: Test the page

  1. Save the layout and view the page on the front end.
  2. Type a keyword into Search and select one or more Categories.
  3. Confirm that results update without a page reload and that pagination (if enabled) remains in sync.

Tip: If no posts match, check your category selections or try a broader search term.

Back to top


Method 2: Divi Loop Builder

Use a custom Loop Builder layout to render the filtered list of posts. This method requires a little more work to get started as you need to build the Loop Layout yourself.

Step 1: Turn on a Loop Builder layout for results

  1. Open your target page in the Divi 5 Visual Builder.
  2. Add a Row or Section that will hold the filtered post list.
  3. Select that container and open its settings.
  4. In the Content tab, open the Loop group.
  5. Turn Loop Element On.
  6. Set Post Type to Posts (or the post type you want to filter).

Insert a Loop Builder layout for Posts

Step 2: Design the loop item layout

Build your Loop Builder layout

  1. Inside the loop container, add modules that represent one post in the list.
    • Example: Image, Heading, and Text for a simple card layout.
  2. Connect each module to post data with Dynamic Content:
    • ImageFeatured Image
    • HeadingPost Title
    • TextPost Meta, Excerpt, or another field you want to show.
  3. Style spacing, typography, and colors so the repeating item looks right on the page.

Connect your Loop Builder layout to dynamic elements

Step 3: Add the Filter Posts module

Add the filter module the same way as in Method 1: Archive Loop.

  1. In the filter column, add the Filter Posts module.
  2. Open Filter Posts settings.
  3. Set Filter Post Type to Post so the filter targets the same content as your loop.
  4. Set Filter Update Method to match how visitors should apply filters:
    • On button click — update results when the visitor clicks Filter or Search.
    • On change — update results as soon as a filter value changes.

Add and configure the Filter

Step 4: Add text and category filters

  1. In Filter Posts, add two filter items:

Search text: provides a free-text search across post content.

Add Search filter items

Category: displays a list of categories based on post type Categories.

Add Category filter items

  1. Leave other options at defaults for now.
  2. Save the module.

Configured filter posts module

Step 5: Test the page

  1. Save the layout and view the page on the front end.
  2. Type a keyword into Search and select one or more Categories.
  3. Confirm that results update without a page reload and that pagination (if enabled) remains in sync.

Tip: If no posts match, check your category selections or try a broader search term.

Back to top


What’s next

  • Learn empty filter options for handling no-result states.
  • Review URL sync to share filtered views.
  • Explore the filter items reference for all options and operators.