The Loop Clear out Modules in Divi 5 let guests seek and refine content material at once to your web site. Past classes and tags, you’ll attach filters to tradition fields for main points reminiscent of value, bed room depend, and placement.
On this instructional, we construct a assets listing with a Loop Builder checklist grid and a filter out shape beside it. Guests can seek by means of key phrase and use 5 ACF fields to slim the listings by means of most value, town, assets kind, bedrooms, and facilities. Alongside the way in which, we duvet numeric comparisons, routinely generated choices, and the additional care wanted when filtering multi-value fields.
How The Loop Clear out Modules Paintings
Divi 5’s Loop Builder allows you to repeat a component for every lead to a question. For this listing, we design one assets card, question the Homes publish kind, and use Dynamic Content material to populate every repeated card. The loop defines the beginning content material and structure. The Publish Clear out Module provides guests controls to refine the ones effects with out converting the cardboard design.
Two modules paintings in combination to construct the shape. The Publish Clear out Module is the shape container. It holds the controls and connects them to a goal loop.

Within it, upload Publish Clear out Merchandise Modules, one for every keep an eye on.

Every merchandise’s Box Kind determines how guests have interaction with it:
- Textual content: Accepts typed enter, with the worth kind and information supply figuring out what it searches or compares.
- Make a selection: Presentations choices in a dropdown.
- Radio: Presentations an inventory of choices with one alternative allowed.
- Checkbox: Permits a number of choices.
- Order: Controls ascending or descending order.
- Order Via: Chooses the worth used to type effects.
- Publish And Reset: Upload buttons to use or transparent the filters.
Our assets listing makes use of six filtering controls, plus Observe and Reset buttons. A more effective shape would possibly most effective want a dropdown and an Observe button.
Computerized And Handbook Choices
Make a selection, Radio, and Checkbox pieces want choices to show. With Choices Way set to Computerized, Divi discovers saved discipline values. Handbook allows you to outline every choice’s submitted cost and visual label. We use Handbook later to keep an eye on how facilities seem within the shape.
Making use of The Clear out
You’ll follow filters when guests click on a button or routinely as they alter a keep an eye on. With six controls, we use button-based submission so guests could make a number of choices sooner than updating the consequences.
What This Makes Imaginable
Taxonomies paintings smartly for shared classifications, reminiscent of assets sorts or facilities. Customized fields are helpful when listings additionally want particular person values, reminiscent of a worth that guests can examine in opposition to the cheap.
The similar manner can beef up activity forums filtered by means of wage, direction catalogs filtered by means of degree, or match listings filtered by means of venue. This situation helps to keep the valuables main points in ACF fields so we will center of attention on how the ones fields hook up with Divi’s filters.
What You Want Sooner than You Get started
First, we arrange the info: sign in a Homes publish kind, create 5 tradition fields, and post pattern listings. Then we construct the checklist playing cards with Loop Builder and fasten the filter out shape.
We’re the usage of Complicated Customized Fields. The loose model helps the fields and publish kind registration wanted right here. You do not want ACF Professional or a separate publish kind registration plugin for this setup.
Set up Complicated Customized Fields
Obtain the loose plugin the usage of ACF’s set up information. In WordPress, cross to Plugins > Upload New Plugin > Add Plugin, choose the ZIP record, and click on Set up Now. Turn on the plugin so as to add ACF to the admin menu.

Check in The Homes Publish Kind
A separate publish kind helps to keep assets listings arranged and offers the loop a devoted content material supply. Pass to ACF > Publish Sorts and click on Upload New.

Input:
- Plural Label: Homes
- Singular Label: Belongings
- Publish Kind Key: assets

Save the publish kind. Homes now seems within the admin sidebar along Posts and Pages. Make certain the publish kind helps a identify, editor content material, and featured symbol, since we use those within the listing.

Create The Box Workforce
A discipline staff incorporates the 5 fields and determines the place they seem. Pass to ACF > Box Teams, click on Upload New, and identify the crowd Belongings Main points.

Below Location Regulations, set Publish Kind to is the same as Belongings. This presentations the fields when modifying a assets checklist.

Upload the next 5 fields. Stay their discipline names constant so you’ll establish the proper records resources in Divi.
1. Value
- Box Label: Value
- Box Identify: property_price
- Box Kind: Quantity

Retailer costs as numbers with out forex symbols or 1000’s separators. For this situation, input 530000, no longer $530,000. We upload the forex image when exhibiting the cost, conserving the saved cost appropriate for numeric comparisons.
2. Bedrooms
- Box Label: Bedrooms
- Box Identify: property_bedrooms
- Box Kind: Make a selection
- Alternatives: 1, 2, 3, 4, 5, every on a separate line
- Go back Layout: Price

Depart a number of alternative disabled. A Make a selection discipline provides participants a constant set of bed room counts. Lengthen the selections in case your listing wishes studios or houses with greater than 5 bedrooms.
3. Belongings Kind
- Box Label: Belongings Kind
- Box Identify: property_type
- Box Kind: Make a selection
- Alternatives: Condo, Area, Villa, Townhouse, every on a separate line
- Go back Layout: Price

Depart a number of alternative disabled so every checklist has one assets kind.
4. Facilities
- Box Label: Facilities
- Box Identify: property_amenities
- Box Kind: Checkbox
- Alternatives: Parking, Pool, Lawn, Balcony, Fitness center, every on a separate line
- Go back Layout: Price

A assets may have a number of facilities, so this discipline must retailer a number of choices. Coming into every selection with out a separate label makes its cost and label similar, which simplifies the handbook filter out choices later.
5. Town
- Box Label: Town
- Box Identify: property_city
- Box Kind: Textual content

Use constant town names throughout listings fairly than blending names and abbreviations. Save the sphere staff.
Upload Your Belongings Listings
Pass to Homes > Upload New. Upload a identify, featured symbol, and a brief description, then whole all 5 tradition fields under the editor.

Submit a number of listings with other costs, towns, bed room counts, and facilities. Come with houses with a number of facilities so you’ll take a look at that discipline correctly. As soon as the pattern listings are printed, transfer into the Visible Builder.
What We Are Development
The completed web page has a filter out sidebar at the left and a assets grid at the proper. Every card presentations a featured symbol, identify, value, town, bed room depend, facilities, and a touch button.

The sidebar incorporates key phrase seek, most value, town, assets kind, bedrooms, and facilities, with Reset and Observe buttons beneath. Key phrase seek objectives publish titles and content material; the opposite 5 controls goal the ACF fields.
The stairs under center of attention at the question, Dynamic Content material connections, and filter out configuration. You’ll adapt the cardboard styling to fit your web site.
1. Set Up The Two-Column Web page Construction
Upload a row with a slim left column for the filter out and a much wider proper column for the listings.

Open the row settings and cross to Design > Sizing. Set:
- Width: 85%
- Max Width: None

This provides the checklist grid extra space on desktop. Within the row’s Format settings, set Horizontal Hole to 1%.

Within the best column, upload a nested row with 3 equivalent columns. Set its Horizontal Hole to 1% as smartly.

Depart the filter out column empty till the loop is able.
2. Flip The Column Into A Belongings Loop
Delete the second one and 3rd columns from the nested row. The rest column turns into the valuables card that Divi repeats. Stay the nested row configured for 3 playing cards throughout on desktop, with wrapping enabled for extra listings.
Open the remainder column’s settings, cross to Content material > Loop, and activate Permit Loop. Use a post-based question and set Publish Kind to Homes.
The column repeats for the houses returned by means of the question, matter to its publish depend and different settings. Take a look at Posts In keeping with Web page so the question comprises sufficient listings on your take a look at. Give the looped column a transparent label, reminiscent of Belongings Listings, to make it simple to spot when connecting the filter out.
3. Design The Record Card As soon as
The whole lot throughout the looped column repeats for every checklist. Upload:
- An Symbol Module for the featured symbol.
- 3 Heading Modules for the valuables identify, value, and town.
- Two Textual content Modules for the bed room depend and facilities.
- A Button Module connected on your touch web page or meant enquiry vacation spot.
Our card makes use of a white background, a daring identify, and a smaller value beneath. Use Divi’s background, border, Field Shadow, spacing, and typography controls to taste yours. Enhancing this supply card updates the repeated playing cards; Presets are helpful for those who additionally wish to reuse the ones types somewhere else.
4. Pull ACF Knowledge Into The Card With Dynamic Content material
Dynamic Content material replaces every module’s placeholder content material with records from the present assets within the loop.
Within the Symbol Module, click on the Dynamic Content material icon within the symbol discipline and choose Featured Symbol. Within the assets identify Heading Module, choose Publish Name. Attach the remainder headings and textual content to their matching ACF fields:
- Value: Value
- Town: Town
- Bedrooms: Bedrooms
- Facilities: Facilities
Use the Dynamic Content material Sooner than and After settings so as to add show textual content. Upload $ sooner than Value and Bed room(s) after Bedrooms. The saved values stay 530000 and 3, whilst the cardboard presentations $530000 and 3 Bed room(s). The prefix provides a forex image, no longer 1000’s separators.
Take a look at that Facilities presentations the chosen values as a readable checklist, reminiscent of Pool, Lawn, and Balcony. Save the web page and test the entrance finish to substantiate that every card makes use of its personal assets’s records.
For pictures with other dimensions, set the Symbol Module’s Facet Ratio to 1:1.2 and Framing to Quilt. This provides them a constant form whilst cropping to fill the body.
5. Upload The Publish Clear out Module And Attach The Loop
Upload a Publish Clear out Module to the left column. Open Content material > Goal and set:
- Goal Loop: Belongings Listings, the looped column created previous
- Observe Mode: Publish
- Relation: And
In case your model labels those settings Clear out and Interplay Mode, select the an identical Handbook mode. The goal is similar: stay up for the customer to click on Observe.
Goal Loop connects the shape to the listings. And calls for all energetic filter out controls to check; Or lets in a fit from any one in every of them.
Stay the default Seek, Observe, and Reset pieces. Take away Class as a result of this situation makes use of tradition fields for its assets standards. Seek objectives assets titles and content material, no longer all the tradition fields displayed within the playing cards.
If the buttons are lacking, upload separate Publish Clear out Pieces with Box Kind set to Publish and Reset. Use Observe and Reset as their button textual content.
Upload the 5 custom-field controls under as Publish Clear out Pieces. In Textual content pieces, the data-source selector is also classified Box Price fairly than Box Choice.
6. Set A Most Value With A Numeric Comparability
Upload an merchandise and set:
- Box Label: Most Value
- Box Kind: Textual content
- Box Price Kind: Quantity
- Box Price / Box Choice: Value, the ACF discipline named property_price
- Box Comparability: Much less Than Or Equivalent To
- Placeholder: 750000
Coming into 750000 helps to keep listings priced at or under that quantity. The placeholder is just a trace; it does no longer set a default most.
That is filtering, no longer sorting. Order Via adjustments the collection of effects fairly than getting rid of listings above the cheap. Its integrated Value choice is for WooCommerce product costs, no longer this ACF discipline. Use a Textual content merchandise with a Quantity cost kind to match the ACF value with the customer’s restrict.
Stay forex symbols and 1000’s separators out of each the saved cost and the filter out enter.
7. Seek Town Names
Upload an merchandise and set:
- Box Label: Town
- Box Kind: Textual content
- Box Price Kind: Textual content
- Box Price / Box Choice: Town, the ACF discipline named property_city
- Placeholder: Input A Town

This keep an eye on searches the saved Town discipline independently of the overall key phrase seek. Take a look at it with town names that seem on your printed listings.
8. Construct The Belongings Kind Dropdown From Saved Values
Upload an merchandise and set:
- Box Label: Belongings Kind
- Box Kind: Make a selection
- Box Choice: Belongings Kind
- Choices Way: Computerized
- Placeholder: Make a selection Belongings Kind

Computerized discovers values stored on listings, no longer merely each selection outlined in ACF. An unused assets kind would possibly subsequently be absent. If stored values are lacking, use Transparent Cached Choices and reload the web page.
9. Show Bed room Counts As Radio Buttons
Upload an merchandise and set:
- Box Label: Bedrooms
- Box Kind: Radio
- Box Choice: Bedrooms
- Choices Way: Computerized

Radio lets in one bed room depend at a time. Use an equality comparability to check the chosen depend, fairly than treating it at least.
If choices are lacking, verify that the sphere is populated on printed listings and transparent the cached choices. You’ll additionally transfer to Handbook and input 1 via 5, the usage of matching values and labels. Stay those aligned together with your ACF possible choices.
10. Create Readable Facilities Choices
Upload a Publish Clear out Merchandise and set:
- Box Label: Facilities
- Box Kind: Checkbox
- Box Choice: Facilities
- Choices Way: Handbook
Use Handbook to go into every amenity as a separate choice.

Below Choices, click on Upload Checkbox for every amenity under. Input the similar textual content in each the Price and Label fields:
- Parking
- Pool
- Lawn
- Balcony
- Fitness center
Those values will have to fit the selections entered on your ACF Facilities discipline previous. Upload them for my part with out the usage of Generate Choices.
Save the web page and take a look at the filter out at the entrance finish. Make a selection Parking, click on Observe, and test that houses with Parking seem, together with the ones with different facilities. Take a look at a number of choices as smartly.
As soon as filtering works as it should be, use the Design tab to taste the labels, inputs, spacing, and buttons. You’ll reuse those types with Choice Workforce Presets.
11. Take a look at The Filters And Alter Smaller Displays
Save the web page and take a look at it at the entrance finish. Get started with a mix that fits a recognized checklist. For instance, input Portland, choose 1 bed room, and input a most value of 300000, then click on Observe. Use other values in case your pattern records does no longer include that aggregate.
With Relation set to And, effects must fulfill all energetic controls. Take a look at every keep an eye on one by one sooner than combining them so you’ll establish any discipline that produces sudden effects.
Additionally test:
- Value obstacles: An inventory priced precisely on the most must stay visual.
- Facilities: Examine each single- and multiple-selection habits the usage of recognized listings.
- No suits: Take a look at a mix no checklist satisfies and make sure the web page handles an empty end result.
- Reset: Ascertain that it clears your choices and restores the beginning effects.
On pill and call, test that the filter out sits above the listings. Alter the column widths, gaps, and playing cards according to row with responsive settings as wanted. Stay the Facilities checklist compact sufficient that guests can achieve the listings with out over the top scrolling.
Construct Helpful Filters Without delay Within Divi 5
Dependable filtering begins with the info. Retailer costs as numbers, use constant possible choices for fields reminiscent of Belongings Kind and Bedrooms, and take a look at multi-value fields one by one.
With the sphere construction, loop question, and filter out controls hooked up in Divi 5, guests can slim a listing the usage of the main points that topic to them. The similar workflow may also be tailored to different listings, from activity forums to direction catalogs, whilst conserving the structure and filter out design within Divi 5.
The publish Filtering Loops With Customized Fields In Divi 5 gave the impression first on Sublime Issues Weblog.
WordPress Web Design
