Custom Blog Feed with Loop Builder¶
Build a custom blog feed layout in Divi 5 using the Loop Builder to dynamically display posts with featured images, titles, dates, and excerpts.
Overview¶
The default Blog module works well for standard layouts, but when you need a custom design -- such as a featured post alongside a grid of secondary posts -- the Loop Builder gives you full control over how post data is displayed. This guide walks through creating a two-column blog feed with a highlighted featured post.
For additional reference, see the official Elegant Themes documentation.
Step 1: Create the Section¶
- Add a new Section to your page.
- Set the background color to a light gray (e.g.,
#EFEFEF) to visually separate the blog feed from other content.
Step 2: Add a Title Row¶
- Add a single-column Row inside the section.
- Insert a Heading or Text module with your blog feed title (e.g., "Latest Posts").
Step 3: Build the Content Row¶
- Add a second Row using the offset column layout (the 9th layout option, which gives you a narrow left column and a wider right column).
- The left column will hold the featured post; the right column will hold the post grid.
Step 4: Configure the Post Grid (Right Column)¶
- Select the wider (right) column.
- Enable the Loop Element toggle.
- Set Posts Per Page to
9. - Set Post Offset to
1so the featured post is not repeated. - Enable Text Wrap on the row to arrange posts in a grid.
Step 5: Add Dynamic Content to the Grid¶
- Add a Group module inside the right column.
- Inside the Group, add an Image module and link it to Loop Featured Image via Dynamic Content.
- Add Text modules for the post date, title, and excerpt, each connected to their respective Dynamic Content fields.
Step 6: Configure the Featured Post (Left Column)¶
- Select the left column.
- Enable the Loop Element toggle.
- Set Posts Per Page to
1(only the most recent post). - Add the same Dynamic Content modules (image, title, date, excerpt) but style them larger to emphasize the featured post.
Step 7: Style the Layout¶
- Apply padding (e.g.,
15px) and border radius (e.g.,15px) to each post card for a clean appearance. - Set background colors on the Group modules to distinguish cards from the section background.
- Adjust typography and spacing to match your site design.
Tips¶
- The Post Offset setting on the grid row is what prevents the featured post from appearing twice.
- You can adjust the number of posts per page and the column layout to suit your design needs.
- Consider adding pagination if you have a large number of posts.