The wonderful thing about WordPress is that this can be a content material control machine (CMS), now not only a web site builder. That suggests you’ll use its versatile content material garage to arrange a weblog, create customized put up sorts (like tasks or actual property listings), and a lot more. Divi’s Loop Builder is one of the simplest ways to take that content material and show it throughout your web site in 100% customizable designs.
This makes Loop Builder Queries very important. Divi 5 offered the Loop Builder, with plenty of same old Question Choices. Those outline precisely what content material seems inside of a looped container. This put up walks thru each question atmosphere, explains what it does, and issues out while you may want plugins like ACF.
Construction Customized Loops
A loop begins with the Looped Part. Bring to mind it as a container that repeats itself for each matching merchandise. The pieces may well be posts, phrases, customers, or repeater fields. If you flip looping on, the question panel displays up. That is the place the actual regulate lives.

Question Kind
Step one is at all times the similar: make a choice a Question Kind. Divi 5 lately helps:
- Put up Kind (like posts, tasks, merchandise, or any customized put up kind you’ve registered)
- Phrases (classes, tags, or different taxonomies)
- Customers (your WordPress web site’s consumer accounts)
- Repeater Fields (from plugins like Complex Customized Fields Professional)
Relying for your selection, the remainder of the choices alternate. Let’s undergo every.

Put up Kind Queries
This would be the maximum commonplace form of Loop. After opting for Put up Kind because the loop kind, you’re going to make a selection a selected put up kind (or a couple of sorts in combination), and Divi will loop thru its entries. It might be the default weblog posts, a WooCommerce product listing, or one thing you constructed with a CPT plugin.

From there, you’ll fine-tune the question with those choices:
Clear out Via Time period
Come with or exclude classes and tags. As an example, display simplest weblog posts within the class of “Bulletins.”
Clear out Via Explicit Put up(s)
You’ll come with or exclude particular posts inside of your CPT via settling on which posts to turn or now not display. That is at hand for making a loop of posts that don’t fit a predictable question (like class, observed above).
Meta Question
This one is gold in case you use customized fields. You’ll come with or exclude posts in response to box values. As an example, simplest display “homes” the place “For Sale” equals true. Or within the case under, the place the route length is bigger than 7 hours.
It is important to create those customized fields with a plugin like ACF or a plugin that creates those meta keys for you (the rest that creates customized put up sorts with customized fields can have meta keys for his or her distinctive information).
Order And Sorting
Make a selection alphabetical, post date, changed date, and even random. Mix with ascending or descending to get the precise collection you wish to have.

Merchandise Depend And Offset
Put up pieces according to web page makes a decision what number of posts seem prior to pagination kicks in. Notice that you must upload the Pagination Module for your web page if you need it.

Offset skips plenty of posts from the beginning. It’s absolute best for making a unmarried loop (for a featured put up) and a secondary loop with all of the relaxation. You’ll set the second one loop to have an offset of 1 to skip the primary put up (which on this instance occupies the primary loop because the characteristic).
Forget about Sticky Posts
You’ll make a choice sure or no. In the event you even use the “Make this put up sticky” possibility, you’ll exclude them out of your loops.
This is it for the elemental choices for Question Filtering with Put up Varieties. Lots of the identical rules follow to different question sorts, however there are some variations.
Time period Queries
Infrequently you don’t wish to loop thru posts — you need the kinds themselves. That is conceivable with Divi and simplest calls for you to modify the Question kind.
You’ll see an identical controls when the usage of phrases:
- Meta Question to filter out phrases via customized metadata (calls for plugins like ACF).
- Order Via + Order to type via identify, ID, slug, or customized values.
- Phrases According to Web page + Offset for pagination.
Sensible makes use of: display a grid of weblog classes, listing all WooCommerce product classes, or spotlight taxonomies from a CPT.
Person Queries
Person queries aren’t new to WordPress, however in Divi 5, they’re in any case simple to create.
Make a selection “Customers” and Divi will allow you to loop thru web site accounts. That may be authors, admins, or club lists.
Choices right here:
- Meta Question for pulling customers with particular roles or box values. Instance: simplest display “Authors.”
- Order Via + Order to type via ID, login identify, show identify, or registration date.
- Customers According to Web page + Offset for pagination.
Repeater Queries
This one calls for Complex Customized Fields Professional (or a an identical plugin). WordPress itself doesn’t have “repeater” fields via default. If in case you have them, Divi’s Loop Builder will question them seamlessly. Right here, we used ACF to create an Choice Web page with a Repeater box for trade hours.

Then, we constructed our Loop and selected “Repeater” because the Question Kind.
You’ll even have those choices for enhancing the question effects:
- Order + Path (ascending, descending, random).
- Repeaters According to Web page + Offset.
Repeater fields are ideal for such things as FAQs, pricing options, or different content material blocks that don’t require a complete put up kind.
Plugins You Would possibly Want Or Need
Divi faucets into quite a lot of “feeds” of content material that may exist for your web site. Some are elementary to WordPress, whilst others are dropped at WordPress by way of a plugin.
- Customized Put up Varieties don’t include WordPress out of the field. You’ll desire a plugin like CPT UI or write your personal license plate. WooCommerce provides “Merchandise” mechanically.
- Repeater Fields require one thing like ACF Professional. Divi doesn’t create them for you, however you’ll absolutely faucet into them to show this content material kind.
- Customers and Phrases are local to WordPress — you have already got them, and Divi can show them simply.
That suggests maximum websites can use 3 of the 4 question sorts in an instant. For customized put up sorts and repeater loops, funds an additional plugin (there are loose and paid choices to be had).
Use The Loop Builder In Divi 5 These days
The Loop Builder in Divi 5 will give you new techniques of deciding what data to turn. It additionally will give you extra regulate over your web site’s designs since any container or module will also be looped, as an alternative of simplest post-specific modules.
Divi’s in depth Question Choices allow you to choose between put up sorts, phrases, customers, or repeater fields. You’ll additionally outline preliminary filters, exclusions, meta queries, and pagination to dial into the precise content material and ordering that you need to show.
With all of those, you’ll additionally construct grids, sliders, directories, or anything your web site wishes. This was once probably the most asked options in Divi’s historical past, and it’s in any case right here. In the event you’ve been pissed off via the bounds of the previous Weblog module, that is your solution.
The put up All Divi 5 Loop Builder Query Options Explained gave the impression first on Elegant Themes Blog.



0 Comments