Shortcodes
[cr_bee_featured_vehicles]
Carousel of featured vehicles from your fleet
Renders a carousel slider showing vehicles marked as "Featured" in the CR Bee admin.
Usage
[cr_bee_featured_vehicles]Attributes
| Attribute | Default | Range | Description |
|---|---|---|---|
limit | 8 | 1–20 | Maximum number of vehicles to show |
columns | 4 | 1–6 | Number of visible columns |
autoplay | true | true/false | Auto-advance the carousel |
speed | 5000 | 1000–30000 | Autoplay interval in milliseconds |
Examples
[cr_bee_featured_vehicles limit="6" columns="3"]
[cr_bee_featured_vehicles autoplay="false" columns="2"]
[cr_bee_featured_vehicles limit="10" speed="3000"]What It Renders
A responsive carousel (powered by Splide.js) showing featured vehicle cards:
- Vehicle image
- Name and category
- Starting price (if available)
- "View Details" link
API Calls
| Endpoint | Cache TTL | Purpose |
|---|---|---|
GET /cars?featured=true | 5 min | Fetch featured vehicles with prices |
GET /settings | 5 min | Currency and labels |
Notes
- Only vehicles marked as "Featured" in Fleet > Edit Vehicle appear in this carousel
- Each carousel instance gets a unique ID, so multiple shortcodes can appear on the same page
- The carousel is responsive and adjusts the number of visible columns based on screen width