Post Slider generates a responsive image slider from any combination of post categories. Each card shows the featured image, title, event date (if ACF is active), and up to four custom ACF fields. The slider is fully autonomous: CSS and JavaScript are injected directly into the shortcode output, so it works inside Elementor widgets, classic editor pages, and custom templates without conflicts.
Features
- Swiper 11 bundled — no external CDN dependency
- Fully responsive with independent breakpoints for desktop, tablet, and mobile
- ACF support for event dates and custom fields — optional, degrades gracefully if ACF is not installed
- Two ACF date field sets (default / alternative) switchable per shortcode instance
- Four configurable custom ACF fields: one in the image overlay, three below the title
- Smart loop: automatically enabled only when enough slides are available
- Slide clamp: never shows more slides than available posts
- Autoplay with pause on hover
- Exclude posts by ID or exclude the current post
- Hide past events by end date
- Clean, scoped CSS — no interference with theme styles
- Compatible with Elementor editor and preview mode
Requirements
- WordPress 5.0+
- ACF (optional — required only for date and custom field display)
- PHP 7.4+
Shortcode parameters
| Parameter | Default | Description |
|---|---|---|
posts | 8 | Number of posts to fetch (1–50) |
categories | from settings | Comma-separated category slugs |
slides_desktop | 5 | Visible slides at ≥1024px |
slides_tablet | 3 | Visible slides at 768–1023px |
slides_mobile | 2 | Visible slides at <768px |
show_date | yes | Show event date |
hide_past | no | Hide events with past end date |
date_field_set | default | ACF date field set (default / alternative) |
exclude_current | no | Exclude current post |
exclude_ids | — | Comma-separated post IDs to exclude |
Admin panel
Go to Settings → Post Slider to configure global defaults, ACF field names, Swiper source, and loop multiplier. The built-in Shortcode Builder lets you configure all parameters visually and copy the generated shortcode in one click.





