Blog · Gutenberg

Post Carousel block for WordPress

A responsive carousel of posts with autoplay, arrows, and dots.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

A responsive carousel of posts with autoplay, arrows, and dots.

Inspector panels on this block: Query, Carousel, Card, Card Colors, Navigation Colors. Those titles come from index.js, not from a shared template.

Behavior controls: “Post Type” options: Posts, Pages; “Order By” options: Date, Title, Modified, Random, Menu Order; “Order” options: Newest first, Oldest first; “Arrow Style” options: Circle, Square, Minimal.

Where to find it

Gutenberg inserter → Blog → search “Post Carousel” (block name `blockenberg/post-carousel` in block.json). Style it in the sidebar after insert.

How to use Post Carousel block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Post Carousel”, insert it. Category: Blog.
  3. Configure inspector controls that exist on this block. Open Query. Set “Post Type”, “Order By”, “Order”, “Number of Posts”.
  4. Check the published page. The view script reads HTML data attributes: data-post-type. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Post TypeSelect control; the chosen value is saved on the block. Options: Posts; Pages. block.json default: post. Saved as `postType`.
Order BySelect control; the chosen value is saved on the block. Options: Date; Title; Modified; Random; Menu Order. block.json default: date. Saved as `orderby`.
OrderSelect control; the chosen value is saved on the block. Options: Newest first; Oldest first. block.json default: desc. Saved as `order`.
Number of PostsNumeric range control in the inspector. Range 2–20. block.json default: 6. Saved as `perPage`.
Excerpt Length (words)Numeric range control in the inspector. Range 5–60. block.json default: 20. Saved as `excerptLen`.
Slides (Desktop)Numeric range control in the inspector. Range 1–5. block.json default: 3. Saved as `slidesPerView`.
Slides (Tablet)Numeric range control in the inspector. Range 1–4. block.json default: 2. Saved as `slidesPerViewTablet`.
Slides (Mobile)Numeric range control in the inspector. Range 1–2. block.json default: 1. Saved as `slidesPerViewMobile`.
Gap (px)Numeric range control in the inspector. Range 0–60. block.json default: 24. Saved as `gap`.
AutoplayOn/off toggle in the inspector. On by default. Saved as `autoplay`.
Autoplay Speed (ms)Numeric range control in the inspector. Range 1000–10000. block.json default: 4000. Saved as `autoplaySpeed`.
Pause on HoverOn/off toggle in the inspector. On by default. Saved as `pauseOnHover`.
LoopOn/off toggle in the inspector. On by default. Saved as `loop`.
Show ArrowsOn/off toggle in the inspector. On by default. Saved as `showArrows`.
Arrow StyleSelect control; the chosen value is saved on the block. Options: Circle; Square; Minimal. block.json default: circle. Saved as `arrowStyle`.
Show DotsOn/off toggle in the inspector. On by default. Saved as `showDots`.
Card StyleSelect control; the chosen value is saved on the block. Options: Shadow; Outlined; Flat. block.json default: shadow. Saved as `cardStyle`.
Card RadiusNumeric range control in the inspector. Range 0–30. block.json default: 10. Saved as `cardRadius`.
Image RatioSelect control; the chosen value is saved on the block. Options: 16:9; 4:3; 1:1. block.json default: 56.25. Saved as `imageRatio`.
Show ImageOn/off toggle in the inspector. On by default. Saved as `showImage`.
Show MetaOn/off toggle in the inspector. On by default. Saved as `showMeta`.
Show ExcerptOn/off toggle in the inspector. On by default. Saved as `showExcerpt`.
Show Read MoreOn/off toggle in the inspector. On by default. Saved as `showReadMore`.
Read More LabelText field in the inspector. block.json default: Read More. Saved as `readMoreLabel`.
Title TypographyShared Blockenberg typography popover (family, size, weight, spacing). Saved as `titleTypo`.
Excerpt TypographyShared Blockenberg typography popover (family, size, weight, spacing). Saved as `excerptTypo`.
Meta TypographyShared Blockenberg typography popover (family, size, weight, spacing). Saved as `metaTypo`.
Card BGColor control in the inspector. block.json default: #ffffff. Saved as `cardBg`.
Card Colors — TitleColor control in the inspector. block.json default: #111827. Saved as `titleColor`.
ExcerptColor control in the inspector. block.json default: #6b7280. Saved as `excerptColor`.
MetaColor control in the inspector. block.json default: #9ca3af. Saved as `metaColor`.
Link / ButtonColor control in the inspector. block.json default: #2563eb. Saved as `linkColor`.
Arrow BGColor control in the inspector. block.json default: #ffffff. Saved as `arrowBg`.
Arrow ColorColor control in the inspector. block.json default: #111827. Saved as `arrowColor`.
DotColor control in the inspector. block.json default: #d1d5db. Saved as `dotColor`.
Dot ActiveColor control in the inspector. block.json default: #111827. Saved as `dotActiveColor`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Post Carousel block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Post Carousel”. It sits under Blog. After insert, open Query and set “Post Type”, “Order By”, “Order”, “Number of Posts”.

What makes Post Carousel different from other Blockenberg blocks?

A responsive carousel of posts with autoplay, arrows, and dots. Inspector labels on this block include “Post Type”, “Order By”, “Order”, “Number of Posts”.

Is the Post Carousel Gutenberg block free?

Yes. Post Carousel ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Post Carousel to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Query, Carousel, Card, Card Colors).

Related blog blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Post Carousel from the Gutenberg inserter.

Get Blockenberg