Table of Contents
- What You’ll Need
- Step 1: Create Project Categories
- Step 2: Create Custom Fields Using ACF (Optional)
- Step 3: Add Portfolio Projects
- Step 4: Create a Project Template Using Divi Theme Builder
- Step 5: Create the Portfolio Grid Layout
- Step 6: Design the Portfolio Card
- Step 7: Enable Divi 5 Loop Builder
- Step 8: Add Dynamic Content to Portfolio Cards
- Step 9: Add the Post Filter Module
- Step 10: Customize the Post Filter Design
- Step 11: Add Pagination to the Portfolio Grid
- Step 12: Make the Portfolio Grid Responsive
- Step 13: Preview and Test the Filterable Portfolio
- Conclusion
Divi 5’s Loop Builder provides a flexible way to create dynamic portfolio grids that display projects in a customized layout. Instead of manually designing each portfolio item, you can create a single layout and use the Loop Builder to automatically display multiple projects based on your selected query.
However, displaying projects in a grid is not always enough. Visitors may want to find projects based on specific services, industries, or other criteria. By combining Divi 5’s Loop Builder with its Post Filter module, you can create an interactive portfolio grid that allows visitors to search, filter, and sort projects without navigating away from the page.
In this tutorial, we’ll walk through how to build a filterable portfolio grid using Divi 5 Loop Builder, organize project information, configure filtering options, and customize the layout for different screen sizes.
What You’ll Need
Before getting started, make sure you have:
- WordPress installed on your website.
- Divi 5 installed and activated.
- A collection of portfolio projects to display.
- Advanced Custom Fields (ACF) if you want to add custom project information, such as industry, growth percentage, or performance metrics.
Step 1: Create Project Categories
First, organize your portfolio projects using categories. These categories will help visitors filter projects based on different services or project types.
- Navigate to Projects → Project Categories in your WordPress dashboard.
- Click Add New Category.
- Enter a category name, such as Web Design, Branding, SEO, or Development.
- Add a description if required.
- Click Add New Category to save it.
Create as many categories as needed for your portfolio. These categories will later be connected to the Post Filter module.
Step 2: Create Custom Fields Using ACF (Optional)
If you want to display additional project information, such as industry, growth percentage, or performance metrics, you can use the Advanced Custom Fields plugin.
- Install and activate the free Advanced Custom Fields plugin.
- Navigate to ACF → Field Groups.
- Click Add New and name the field group Projects.
- Under the Location Rules, select Post Type as equal to Project.
- Add the following custom fields:
- Industry: Select field to define the industry associated with each project.
- Percentage Growth: Text field to display project performance statistics.
- Growth Metric: Text field to describe the displayed metric.
- Configure the field choices and labels as required.
- Click Save Changes.
These custom fields will allow you to display additional project details dynamically inside your portfolio cards.
Step 3: Add Portfolio Projects
Once your categories and custom fields are ready, start adding projects to your website.
- Navigate to Projects → Add New.
- Enter the project title.
- Add the featured image for the project.
- Assign the appropriate project category.
- Fill in the custom field values, including industry and performance metrics.
- Add the project description and other relevant information.
- Click Publish.
Repeat these steps for all the projects you want to display in your portfolio grid.
Step 4: Create a Project Template Using Divi Theme Builder
To ensure that every project has a consistent layout, create a custom project template using Divi Theme Builder.
- Navigate to Divi → Theme Builder.
- Click Add New Template.
- Assign the template to All Projects.
- Select Add Custom Body → Build Custom Body.
- Use Divi modules such as Post Title, Text, and Image to design the project details page.
- Insert Dynamic Content wherever you want to display project-specific information.
- Customize the layout and styling.
- Save your template.
This template will be used when visitors click on individual projects from the portfolio grid.
Step 5: Create the Portfolio Grid Layout
Now, create the page where your filterable portfolio will appear.
- Navigate to Pages and open the desired page using the Divi Visual Builder.
- Add a new section.
- Insert a Flexbox Row with two columns, using a smaller column for filters and a larger column for the portfolio grid.
- Add background colors, spacing, and border-radius settings to the filter column.
- In the larger column, add a Nested Row to hold the portfolio items.
- Configure the row’s horizontal and vertical gaps.
- Enable Layout Wrapping to ensure the portfolio cards adjust according to the available space.
This structure provides a dedicated area for filtering options and a separate area for displaying portfolio projects.
Step 6: Design the Portfolio Card
Before enabling the Loop Builder, design one portfolio card that will be repeated for every project.
Inside the Nested Row, add the modules you want to display, such as:
- Text module for the project category or service.
- Heading module for project performance metrics.
- Text module for the project title.
- Text module for the industry name.
You can also use background images, gradients, borders, and spacing to make the portfolio cards visually appealing.
Customize the card layout using Divi 5’s Flexbox settings. For example, use a horizontal layout to display project categories and metrics, and another horizontal layout for project titles and industry information.
Once the first card is ready, you can turn its container into a repeating portfolio layout.
Step 7: Enable Divi 5 Loop Builder
Now, enable the Loop Builder to automatically display your projects.
- Select the Column containing your portfolio card.
- Open the Content tab.
- Expand the Loop settings.
- Enable the Loop Element
- Set Query Type to Post Type.
- Select Projects as the Post Type.
- Configure the Posts Per Page value according to your requirements.
- Set Order By to Publish Date and Order to Descending if you want to display the latest projects first.
- Add an Element Label, such as Projects Loop, to identify the loop when connecting the filter module.
The Loop Builder will now use your designed card as a template and repeat it for each project returned by the query.
Step 8: Add Dynamic Content to Portfolio Cards
After enabling the Loop Builder, connect your portfolio card elements to the project information stored in WordPress.
- Select the portfolio card’s Column.
- Open the Background settings and select Background Image.
- Click the Dynamic Content icon.
- Choose Loop Featured Image.
- Add a background gradient if you want to improve text visibility.
- Open the Link settings and select Loop Link.
- Select the project title and replace its static text with Loop Post Title.
- Connect the category badge to Loop Post Terms and select Project Categories.
- For custom fields, select Loop Post Custom Field and choose the appropriate field, such as percentage_growth, growth_metric, or industry.
Repeat the process for each element that needs to display project-specific information.
Once everything is connected, your portfolio cards will automatically display the relevant information for each project.
Step 9: Add the Post Filter Module
Now comes the important part: allowing visitors to filter the portfolio grid.
- Add a Heading and Text module above the filter area to introduce the filtering options.
- Search for the Post Filter module and add it to the filter column.
- Open the Content tab.
- Under Target Loop, select the Element Label you assigned earlier, such as Projects Loop.
- Set Apply Mode to Submit.
- Set Relation to And if you want visitors to combine multiple filters.
The Post Filter module includes Post Filter Items that define the available filtering controls.
You can configure the following filter options:
Search Filter
- Select the Search Post Filter Item.
- Set Field Type to Text.
- Set Field Value to Post Title and Content.
- Add a Field Label and Field Placeholder.
Service or Category Filter
- Select the Category Post Filter Item.
- Change Field Type to Checkbox.
- Set Field Option to Project Category.
- Change the Field Label to Service.
Industry Filter
- Click Add Element to create another Post Filter Item.
- Set Field Type to Select.
- Choose the industry custom field under Field Option.
- Set the Field Label to Industry.
- Keep Field Value Type as Text.
- Set Field Comparison to Equals (=).
- Use Automatic for the Options Method.
Sorting Filter
If you want visitors to sort projects, add another Post Filter Item and select Order as the Field Type. This allows visitors to change the order of the displayed projects.
You can also use Apply and Reset buttons to let visitors apply their selected filters or clear their search criteria.
Step 10: Customize the Post Filter Design
Once the filtering options are configured, customize their appearance to match your website.
Open the Design tab of the Post Filter module. You can adjust the following settings:
- Fields: Customize the search input, dropdowns, labels, and placeholder text.
- Checkboxes: Change checkbox colors, sizes, and spacing.
- Buttons: Customize the Apply and Reset buttons.
- Typography: Adjust font family, size, weight, and text alignment.
- Background: Add background colors to the filter fields and buttons.
- Borders: Customize border width, color, and radius.
- Spacing: Adjust padding, margins, and gaps between elements.
You can also use Divi 5’s State Picker to customize different states, such as Hover, Focus, Checked, and Active.
These styling options help create a filter interface that fits naturally into your portfolio design.
Step 11: Add Pagination to the Portfolio Grid
If your website contains many projects, displaying all of them on a single page may make the portfolio difficult to browse.
You can use Divi 5’s Pagination module to allow visitors to navigate through multiple pages of portfolio results.
- Add a new Nested Row below the portfolio grid.
- Insert the Pagination
- Open the Content tab.
- Expand the Target settings.
- Select the same Projects Loop Column used by your Post Filter module.
- Configure the Previous and Next link text.
- Open the Design tab and customize the pagination styling.
Make sure the Pagination module is placed outside the repeated Loop element so it appears only once below the portfolio grid.
Step 12: Make the Portfolio Grid Responsive
After completing the portfolio layout, adjust its structure for tablet and mobile devices.
Divi 5 provides responsive breakpoint settings that allow you to customize the layout for different screen sizes.
Consider making the following adjustments:
- Desktop: Keep the filter section in a sidebar and display portfolio cards in multiple columns.
- Tablet: Adjust the column structure and reduce the number of portfolio columns.
- Mobile: Stack the filter section above the portfolio grid and display cards in a single column.
- Adjust padding, spacing, and typography to prevent content from overflowing.
- Enable wrapping for card content so longer project titles and metrics fit properly.
Preview the layout at each breakpoint to ensure the portfolio remains easy to navigate.
Step 13: Preview and Test the Filterable Portfolio
Before publishing your page, test the complete portfolio functionality on the frontend.
- Save your changes and open the published page.
- Enter a project name in the search field and verify the results.
- Select a service category and check whether the correct projects appear.
- Choose an industry from the dropdown.
- Apply multiple filters to verify that they work together.
- Test the sorting options.
- Click Reset to clear the selected filters.
- Test pagination and confirm that it targets the correct Loop.
- Check the portfolio on desktop, tablet, and mobile devices.
If all filtering and navigation options work correctly, your filterable portfolio grid is ready to use.
Conclusion
Creating a filterable portfolio grid with Divi 5 Loop Builder gives you more control over how projects are displayed and organized. By combining Loop Builder, Post Filter, Dynamic Content, and custom fields, you can create a portfolio that goes beyond a standard image gallery.
Visitors can search for specific projects, filter them by services or industries, and explore relevant work more easily. Whether you’re showcasing web design projects, branding work, or creative case studies, Divi 5 provides the tools to build a dynamic and user-friendly portfolio experience.








