| 开发者 | smartupworld |
|---|---|
| 更新时间 | 2026年10月8日 03:16 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[suwps_post_slider] — works in posts, pages, widgets and PHP templates<picture> tagspriority="true" when the slider is at the top of a page, so its first image loads first[suwps_post_slider]
With a header:
[suwps_post_slider eyebrow="From The Blog" title="Latest Insights" subtitle="Practical guides on website care, speed and security."]
For single post templates (skip current, no arrows):
[suwps_post_slider title="Related Articles" count="6" skip="current" nav="false" underline="false"]
Your own button text and colour:
[suwps_post_slider readmore_text="Lees meer" accent="#2c6e49"]
In a PHP template:
<?php echo do_shortcode( '[suwps_post_slider]' ); ?>
The Post Slider admin page lists every attribute with copy-ready examples. Full documentation: smartupworld.com/smartupworld-post-slider/
Third-party library
The carousel is powered by Embla Carousel 8.6.0 by David Jerleke, released under the MIT License. The bundled file assets/js/embla-carousel.umd.js is the unmodified build from the official npm package; the human-readable source is at github.com/davidjerleke/embla-carousel. Its license is included as assets/js/embla-carousel-LICENSE.txt.
smartupworld-post-slider folder to /wp-content/plugins/, or install it from Plugins → Add New.[suwps_post_slider] into any post, page, or widget.Use [suwps_post_slider] anywhere in your site. The admin Post Slider → Shortcode Guide tab lists every attribute with copy-ready examples.
Untick them under Post Slider → Settings to hide them on every slider, or use date="false", author="false" or cat="false" on a single slider.
Go to Post Slider → Settings → Button colours. For one slider only, use the accent attribute, for example accent="#2c6e49".
Type your own label under Post Slider → Settings, or use readmore_text="Lees meer" on a single slider. Left empty, the label is translated automatically when a translation for your language is available.
Yes. Use category="your-category-slug" or category="14" (numeric ID). Example: [suwps_post_slider category="tech" count="6"]
Use the ids attribute with comma-separated post IDs: [suwps_post_slider ids="12,45,67"]. The posts appear in that order. This overrides count and category.
Yes. Add skip="current" to leave out the post being viewed, ideal for a "Related Articles" section.
No. The plugin does not load Owl Carousel or jQuery and uses its own suwps- class names, so sliders from your theme or other plugins are not affected.
Yes: untick Autoplay in the settings, or use autoplay="false". With autoplay off, the pause button is not shown.
Yes. Set Time per slide under Post Slider → Settings, from 2 to 15 seconds (4 by default). For one slider only, use the delay attribute in seconds, for example delay="6".
Content that moves on its own needs a way to stop it (WCAG 2.2.2). You can hide it under Post Slider → Settings, but your slider will then no longer meet that accessibility requirement while autoplay is on.
Full documentation is at smartupworld.com/smartupworld-post-slider/. The admin Post Slider page also contains all attributes and copy-ready shortcode examples.
layout now defaults to "fullwidth", which fills the area the shortcode is placed in. Use layout="contained" for the previous centred 1200px width.suwps- prefix. Custom CSS written for the old suw- classes needs updating.