Build a Custom Post Type Carousel Loop in Divi 5

By Interactive OnlinePublished Updated Editorial draft

Quick Answer

Build a custom-post-type carousel in Divi 5 by defining the content query, designing one repeated item, and connecting its fields to the current loop item inside a Group Carousel. Verify titles, images and destinations using several real records. Add usable controls and a suitable motion policy. A carousel is a presentation choice, not evidence that visitors will engage more than they would with a static list.

Choose the content set before styling slides. A carousel showing the wrong records can look finished while sending visitors to irrelevant pages.

Confirm the post type and query

The content type must already exist and contain suitable published records. Define what belongs in the carousel, its ordering and a sensible item limit. Check the content plugin’s requirements for custom fields before designing around them.

The December 20, 2025 publisher tutorial demonstrates a carousel loop. Current Loop Builder documentation distinguishes the repeated container, query and loop-specific dynamic fields.

For an illustrative project carousel, decide whether completed projects, a particular service category or manually selected highlights belong there. Verify that drafts, private records and unrelated categories are not exposed by the chosen query.

Connect one complete repeated slide

On a development copy, add the Group Carousel and prepare the repeated item. Enable the appropriate loop for that item and choose the intended post type and filters. Keep the section heading and overall introduction outside the repeated container.

Connect the image, title, excerpt and destination to the current loop record. A static image or copied link inside the template can repeat across otherwise different slides. Open several resulting destinations to confirm each matches its title.

Test a long title, a short excerpt and a record without an optional image. Define an appropriate empty state when the query finds no records, rather than leaving unexplained navigation arrows.

Provide understandable previous/next controls where navigation is needed, visible keyboard focus and an appropriate indication of the current item. Check that off-screen content does not create a confusing focus path.

The W3C carousel tutorial covers keyboard operation, understandable changes and control over moving content. Consider leaving automatic rotation off unless it serves a clear need. If rotation is used, implement suitable pause behavior and verify the full interaction.

Check how many items are visible on a phone and whether text remains readable without an oversized slide. Review image loading and the total content retrieved, including records a visitor may never reach.

A grid or list may be more useful when visitors need to compare several entries at once. Our grid guide offers another structural option. Our WordPress design service can help match the content model to the browsing task.

Key Takeaways

  • Define the query before designing slides.
  • Bind each changing field to the current loop item.
  • Test missing data, empty results and correct destinations.
  • Review keyboard access and motion, then compare a static alternative.

Frequently Asked Questions

Does the loop create my custom post type?

No. Establish the content type and fields separately, then configure the loop to retrieve the intended records.

Why does every slide show the same image or link?

Check whether that field still uses static content or the wrong dynamic context. Verify the binding against several different records.

Must the carousel rotate automatically?

No. Choose motion according to the task and provide the controls and behavior needed for the chosen implementation.

Archives