Appearance
Sliders
Sliders, compatible with Slide Anything data.
kitloom/ · admins: kitloom/, kitloom/
Slide Anything plugin sliders working directly on WordPress data: the sa_ post type, slides and settings in post meta — in the same place and format the plugin stores them — and the [slide- shortcode. Admin panels: kitloom/ and kitloom/.
In the visual editor of either admin, «Shortcode» → «Slider» picks a published slider by its title; a shortcode that names its slider by slug is written back with the ID when changed there.
Where the data lives
In the slider post's wp_:
sa_— the number of slides;num_ slides sa_,slide{N}_ content sa_,slide{N}_ link_ url sa_and the other slide fields, N starting at one;slide{N}_ image_ data sa_,slide_ duration sa_,items_ width1…6 sa_and the other settings — one key per setting.css_ id
The package has no tables or migrations of its own.
What's inside
| Element | Purpose |
|---|---|
Slide | The post type, the shortcode and the model key in the registry. |
Slider | The plugin's meta keys, defaults for a new slider and a new slide. |
Slider | Reads and writes slides and settings in meta. |
Data\, Data\ | One slide with all its fields; the slide background. |
Data\ | Settings, read the way the plugin's front end reads them. |
Slider | The slider for the front end: slides in order and carousel settings. |
Sliders | The sliders the request is drawing: a slider whose slide names it again is not drawn inside itself. |
Concerns\ | Slides on a post. A trait, since the application's post already extends its own model. |
Models\ | Default for installations without their own post model. |
Slide | [slide- and [slide-. |
resources/ | A Glide carousel driven by the slider settings; the theme gets it from the build. |
Writing slides
php
app(SliderSlides::class)->put($slider, [
['position' => 2], // second slide becomes first
['position' => 1, 'fields' => ['content' => '…']], // first becomes second, with new text
['fields' => ['content' => '<p>New</p>']], // new slide
]);A slide with position moves with all its fields — including those not edited here (the plugin's popups). A new post has no id yet: $slider- writes the slides once the post is saved.
fill adds the settings the slider lacks, using the plugin's defaults: the plugin's front end reads them without checking, and without them WordPress won't display the slider.
What the front end gets
The shortcode puts slider into the page data — Slider: slides (content, link_, link_, background) and options — how many slides are visible at which screen width, autoplay, loop, arrows, dots, styles.
- Reverse order is applied here, random order is not: pages are cached, so the browser has to shuffle (
options.).random_ order - Shortcodes in slides are processed only if enabled for the slider (
sa_), as in the plugin.shortcodes - Slide images are lazy-loaded — except those with
loadingset manually.
The slider is drawn by the theme, like any shortcode: a Vue theme in place of the anchor, from the data whose shortcode is slide-; a Blade theme with its shortcodes/ view. Nothing puts a component into a theme by itself: the site's Vite build reads only the theme's own files.
resources/ is a ready carousel for a Vue theme to import from the package and give the slider prop, or to copy and change. It imports nothing from a theme and uses no theme classes — its styles are its own, scoped — so it builds in any of them; the carousel is Glide, and @glidejs/ is an application dependency (the skeletons have it).
A slide's HTML is drawn as it is. Shortcodes inside a slide leave their anchors in that HTML and their data in the page's shortcodes, like any other; a theme that draws them passes its own renderer in the content slot:
vue
<SlideAnything :slider="data.slider">
<template #content="{ html }">
<RichContent :html="html" :shortcodes="shortcodes" />
</template>
</SlideAnything>The plugin's slide transition effects (Fade, Zoom…), showcase, thumbnails and popups are not rendered — their meta stays and moves along with the slide.
The shortcode is turned off with kitloom-, the admin sections with kitloom- and kitloom-.
Tests
The tests run in the skeletons, in the Slider testsuite: the package's own (slider/) in both, the Nova admin's (slider-) in kitloom-.
AI agents
With kitloom/ai installed, an agent lists the sliders with their shortcodes (sliders_), reads one with its slides (slider_) — the published ones, and drafts only for a user who sees them — and — when its user has manage_ — creates a slider or replaces its slides (slider_): content, link, target and background image per slide (an attachment of the media library), an existing slide keeping its other fields by its position. A slider made this way gets the plugin's default settings, so WordPress shows it too. kitloom- false — no slider tools.